Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How can I Improve query speed?
Here's my setup:
Pivot table uses an ADODB connection to pull from a single Access database table that contains about 1 million records. A user form contains parameters that will filter the dataset so the ADODB connection doesn't have to pull in the entire table. The problem is, even with filters the query still moves at a slow pace. Does the size of the table have an effect on the query performance---ie, regardless of how or what's filtered, the bigger the table the slower the query speed?? Is there a way to improve the query performance? Maybe adjusting the "MaxBuffer" setting in the cache...not sure what that is even. Or something else? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
How can I Improve query speed?
I always specified criteria using the SQL Where clause. This allows the
database to use it's own optimisation techniques to retrieve the data fastest. I've never used the Filters feature of ADO. Perhaps using Server Side connection will speed things up - just a guess. -- Rob van Gelder - http://www.vangelder.co.nz/excel "John" wrote in message om... Here's my setup: Pivot table uses an ADODB connection to pull from a single Access database table that contains about 1 million records. A user form contains parameters that will filter the dataset so the ADODB connection doesn't have to pull in the entire table. The problem is, even with filters the query still moves at a slow pace. Does the size of the table have an effect on the query performance---ie, regardless of how or what's filtered, the bigger the table the slower the query speed?? Is there a way to improve the query performance? Maybe adjusting the "MaxBuffer" setting in the cache...not sure what that is even. Or something else? |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
How can I Improve query speed?
|
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
How can I Improve query speed?
I have a million row, three column table with no indexes in a Jet .mdb
database on my local machine. Using ADO in Excel VBA code, using SELECT MyKeyCol, MyDataCol, Col1 FROM MillionRowTable it takes 5.1 seconds to get all rows into a recordset. Jamie, are you connecting to an Access DB or SQL db? It only takes 5.1s to get 1M records into a recordset? Are u using this recordset for a pivot table? (I'm kinda new to sql and using Excel like this...I'm better with Access.) Would you recommend using ADO in Excel VBA code to assign a pivot's recordsource? |
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
How can I Improve query speed?
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Running speed of Micrsoft Query with Multiple parameters | Excel Discussion (Misc queries) | |||
Improve speed of saving a large Excel file | Excel Discussion (Misc queries) | |||
Can you speed UP drag speed? | Excel Discussion (Misc queries) | |||
How to improve visuality? | Excel Programming | |||
Howto Improve speed? | Excel Programming |