HTML Code:
Create a index on symbol.
To see the importance of an index watch the free video tutorial here
http://www.datapigtechnologies.com/f...earchform.html
He shows performance before index and after indexing.
Indexing seems to have taken about 3 seconds off the
15-second one -- it was actually more like 12 seconds
before the indexing.
There's on average 3400 records per symbol
A total of about 4700 symbols
3400 * 4700 = 16 million
HTML Code:
is this a local database?
local
HTML Code:
15mil records in 15 seconds isn't bad.
Instantaneous on one, 64 seconds on another with identical result, only
difference the "distinct" stipulation.
HTML Code:
And if you want to be Google-fast, ASPX + AJAX is your route.
I guess I've maxed out on speed. But I would like to
know how google does it. Will look into ASPX + AJAX, although if it costs
anything it probably won't happen.
HTML Code:
Try running the compact+repair and see if that speeds you up any.
Had already done that. Reduced size considerably.