I'm running some aggregation queries on some very large tables in an OLAP environment. I'm currently bottlenecked by disk IO at 200 MB/s.
I'm doing these queries on a machine with 92 GB of RAM. Is there any SQL hint I can write into my query that basically tells SQL to load the entire table into RAM before execution?
Something like:
select * from myTable with (ramdisk)
I am using MS TSQL.
DBCC PINTABLE
used to do this but has now been disabled. Next version has Hekaton for in memory tables. You would still presumably be bottle necked loading the data into RAM in the first place so not sure how much it would help (might be a hinderance) to load into RAM first vs just loading into RAM as the query executes. – Delaney