R
R
Raphael2014-07-24 20:29:07
SQL
Raphael, 2014-07-24 20:29:07

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

4 answer(s)
_
_ _, 2014-07-24
@dj_raphael

Maybe just cram sleep into the request :)? Like WAITFOR DELAY '00:00:01'
Dirty and should work

D
deleted-mezhevikin, 2014-07-24
@deleted-mezhevikin

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

I
IceJOKER, 2014-07-24
@IceJOKER

write some query not relying on indexes with heap where , nesting and linking, and run everything in a loop

A
Alexey Pavlov, 2014-07-24
@lexxpavlov

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 question

Ask a Question

731 491 924 answers to any question