The Gurus Guide to SQL Server Stored Procedures, XML, and HTML [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

The Gurus Guide to SQL Server Stored Procedures, XML, and HTML [Electronic resources] - نسخه متنی

Ken Henderson

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید









Speed



The various techniques for generating test data have varying performance characteristics. As I've said, there is usually a tradeoff between randomness and speed when creating large data volumes. Table 6-1 below summarizes my informal testing of the techniques demonstrated in this chapter. I've included timings for using a simple WHILE loop to insert data in order to provide a frame of reference (timings are in milliseconds):


As you can see, the simplest techniques are the fastest, whereas the ones that produce data which tends to be more random take longer than the others. Note that all the techniques except for the Random()/ScrambleFloat() and INSERT…EXEC techniques outperform the WHILE loop technique. In my opinion, the best technique for producing reasonably random test data as quickly as possible is the doubling technique. It's ten times as fast as the Random() technique and nearly three times as fast as a plain WHILE loop. It's the technique I use most often myself when I need to create test data.



/ 223