Answer the question
In order to leave comments, you need to log in
How to write a slow sql query?
I am writing a test for the expediency of switching the site to asinki
EF6 .Net C # MsSQL
I need to somehow slow down the execution of the sql query.
So far, apart from multiplying tables without an index, nothing comes to mind, but I want something without memory consumption. you need to run about 500 sql queries at the same time
Answer the question
In order to leave comments, you need to log in
Maybe just cram sleep into the request :)? Like WAITFOR DELAY '00:00:01'
Dirty and should work
The easiest way is to write a script that will fill the database with random data as much as possible and select all records with all fields
write some query not relying on indexes with heap where , nesting and linking, and run everything in a loop
fulltext search in a string for a non-indexed column. Yes, make the line longer.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question