Variables, Parameters And Columns Data Types
Ensure your variables and parameters are the same data types as the columns. An implicit or explicit conversion can lead to table scans and slow performance.
Ensure your variables and parameters are the same data types as the columns. An implicit or explicit conversion can lead to table scans and slow performance.
SELECT * is not necessarily a bad thing, but it’s a good idea to only move the data you really need to move and only when you really need it, in order to avo...
When creating a field which will contains text, it is important to choose the right string type in order to save space and increase performance.
Implement different database queries in different contexts. In the API and on a webpage, you’ll inevitably require different entity properties, so don’t load...
Always profile your ORM database hits with SQL Profiler during development. ORMs get away from you very quickly. Before you know it, you’ve run a query 2000 ...