Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Best Practices For Better SQL Database Performance
WhatsApp
Anu V
8y
6.3
k
0
6
25
Blog
Store relevant and necessary information in the database instead of an application structure or an array.
Use normalized tables in the database. Small multiple tables are usually better than one large table.
If you use any enumerated field to create look up for it in the database itself then maintain the database.
Keep primary key of lesser chars or integers. It is easier to process small width keys.
Store image paths or URLs in the database instead of the images. It has less overhead.
Use proper database types for the fields. If StartDate is the database, use date time as datatypes instead of VARCHAR (20).
Specify the column names instead of using * in SELECT statement.
Use LIKE clause properly. If you are looking for an exact match, use “=” instead.
Write SQL keyword in the capital letters for readability purposes.
Using JOIN is better for performance than using sub queries or the nested queries.
Use the stored procedures. They are faster and help in maintainability as well as security of the database.
The user comments for readability as well as guidelines for the next developer, who comes to modify the same code. Proper documentation of an Application will also help.
Proper indexing will improve the speed of operations in the database.
Make sure to test any of the database programming as well administrative changes.
SQL Database Performance
SQL Server
Up Next
SQL Database Performance Tuning
Ebook Download
View all
Functions in SQL Server: Practical Guide
Read by 9k people
Download Now!
Learn
View all
Membership not found