sqlsmith | A random SQL query generator | SQL Database library
kandi X-RAY | sqlsmith Summary
kandi X-RAY | sqlsmith Summary
A random SQL query generator
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of sqlsmith
sqlsmith Key Features
sqlsmith Examples and Code Snippets
Community Discussions
Trending Discussions on sqlsmith
QUESTION
For testing purposes I require a large amount of queries. Creating this manually is not an option, so I am searching a tool which will do this automatically.
Sadly, the only solution I found (sqlsmith), is limited to postgres and SQLite. Are there any similar tools for SQL-Server?
...ANSWER
Answered 2017-Jun-14 at 18:45"I do not know from what random place people will want to travel to a random other place, so instead, let's create roads for every possible combination of origin and destination".
That sounds kind of insane, doesn't it? The same applies to what you seem to be wanting to achieve. You basically are hoping to find a tool that generates random queries against your database so you can feed them to the tuning advisor, which will then suggest query optimization indexes for hypothetical queries.
If you want to performance tune your database, you should have a pretty good idea of the type of questions your users will be throwing at it, as well as the structure of your data. Typical questions that will help you get started would be things like:
- What is the most common search my users would do against this table?
- What criteria are they most likely to use?
- Which columns are guaranteed or likely to contain unique data in every row?
- Which columns will most likely have a low selectivity of data? (I.e. Male/Female)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sqlsmith
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page