20100712: Upgrade to OSQA r516. Let me know if you experience any new issues. 20100708: Fixed the RSS feed.

I use MS SQL sever and I am wondering if it is possible to efficiently test my sql statements on say 1 percent of the data before actually running it on my whole dataset

asked Jul 20 '10 at 19:28

Mark%20Alen's gravatar image

Mark Alen
46224

I assume you're aware of select top n from foobar?

(Jul 22 '10 at 13:59) b0b0b0b

I usually test with 1,000,000 records. That enough data to see how different of query in 0.001 sec but you should tried at least 3 times for see an average time. (you should test on not index data and index data to see how different)

answered Jul 23 '10 at 14:03

DominixZ's gravatar image

DominixZ
1

You're not going to get realistic information testing with a smaller data set.

The reason is, that a smaller data set will fit better into the ram.

Try a full-size (possibly simulated) data set, on non-production production-grade hardware. Sadly setting this up is often expensive (the hardware isn't too expensive; developer time to write software to generate a production-size production-like data set IS)

Having a non-production server on proper hardware with a production-like data set has been invaluable to me; we simply can't go around testing things in production.

NOTE:

  • Production-grade server - say $20k one-off
  • Developer time - > $100k per year, plus the cost of having them not working on "real" software.

answered Jul 26 '10 at 07:45

Mark%20R's gravatar image

Mark R
462

Normalized is probably your better bet, but only a simulate work load will know for sure. You're comparing 50 increasingly sparse indexes of 1 million rows each vs 1 index of 50 million rows.ugg slippers I suspect that if I was a genius at MS writing a algorithm to search one index, I would pick up the values I was looking for as I went a long in one pass.

answered Mar 09 '11 at 01:55

maicalljason's gravatar image

maicalljason
1

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×2
×1
×1

Asked: Jul 20 '10 at 19:28

Seen: 861 times

Last updated: Mar 09 '11 at 01:55

powered by OSQA

User submitted content is under Creative Commons: Attribution - Share Alike; Other things copyright (C) 2010, MetaOptimize LLC.