dcsimg
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: SQL
Expertise: Beginner
Oct 4, 2019

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


3 Hints for Achieving Faster SQL Queries

For faster SQL queries, follow these hints.

  1. Know your data:
    When you know your data, or the structure of where your data is coming from, you will know how to formulate queries to get the needed information in the quickest possible way.
  2. Leave the Clipboard Alone:
    People tend to reuse code from other developers because the code already exists and time is saved. The problem, however, is that the code copied may result in slow queries, and thus could have been improved upon by not trying to save time to copy.
  3. Table-valued Functions:
    Make use of table-valued functions instead of scalar function whenever possible. This increases performance and reduces time spent on executing the function.
Hannes du Preez
 
Thanks for your registration, follow us on our social networks to keep up-to-date