Check JavaScript code
JSLint is a JavaScript code quality tool that checks that the JavaScript syntax used will be understood by all browsers.
The code produced thus complies with coding rules which enables interpreters to quickly and easily run the code. The CPU is therefore utilized for a shorter time.
Limit the number of results
When possible, use the LIMIT statement to specify the number of results to return. This helps minimize the amount of CPU and RAM used to find the relevant records.
The improvement in performance will be even greater if the records contain many large fields.








