T-SQL Skills: Loading Millions Of Rows Of Test Data In Seconds

preview_player
Показать описание
Most tools that generate test data do so iteratively. But SQL loves set based operations. With a little T-SQL know how, you can create millions of rows of test data in seconds.

You can even leverage public data sources to create more realistic data that conforms to your applications business rules.

No third party tools, just a handful of queries. I’m keeping it simple.

#sql #csharp #testing #database

Blog:

LinkedIn:

00:00 Introduction
00:13 Why you should generate test data.
01:11 How much data do you need?
01:48 Fake Data
02:48 Sql loves set based operations.
04:05 Fill the table with fake data.
05:38 Realistic test data
06:23 Populating a parent & child tables.
07:39 Leveraging modulus
08:38 Joining with a case statement.
10:45 Let SQL cook.
Рекомендации по теме
Комментарии
Автор

With privacy being a top concern, this is a great way to not fall in to the trap of using real customer data simply because "it's easy or we've always done it that way before".
Well done Jeff!

mattserdar
Автор

Nice content Jeff! Your explanation helped me to test a bottleneck in a LINQ code I had in the ORM of my application.

thefastjojo
Автор

You’re a legend!! Your content is priceless! Thanks 🤘🏻

dsfgato
Автор

Appreciate you sharing this. Thanks. More of this, please?

everyonesview
Автор

Great video – very useful for testing databases.

As far as I can tell you don’t really utilize to Qty column is you script and the created data just get equally distributed. Do you have a sample of you script where you show the use of Qty?

PerMadsen-tgik