Remove optimizing-sql-server-index-strategies
article thumbnail

Optimizing SQL Server index strategies

SQL Shack

Index strategies overview This article is about techniques for optimizing the SQL Server indexes strategy. Furthermore, I also presented an […].

article thumbnail

Islands T-SQL Challenge

SQL Performance

However, these techniques require explicit sorting despite the presence of a supporting index. Note the definition of the primary key constraint based on the composite key (grp, ord), which results in a clustered index based on the same key. This index can potentially support window functions partitioned by grp and ordered by ord.

C++ 136
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

MySQL Performance Tuning 101: Key Tips to Improve MySQL Database Performance

Percona

MySQL performance tuning offers several significant advantages for effective database management and optimization. Reduced Resource Usage Optimizing resource-intensive queries and configurations can lead to a reduced burden on your server. It is crucial to identify and rectify these issues to optimize your database fully.

Tuning 52
article thumbnail

Matching Supply With Demand — Solutions, Part 1

SQL Performance

It so happens that the classic predicate-based technique for identifying interval intersection has poor performance since there's no good indexing scheme to support it. Here's the code to create such an index: CREATE UNIQUE NONCLUSTERED INDEX idx_Code_ID_i_Quantity ON dbo. Interval Intersections Using CTEs.

Code 116
article thumbnail

Master MySQL Point in Time Recovery

Scalegrid

This article delivers a practical roadmap for using backups and binary logs to achieve accurate MySQL recovery, detailed steps for setting up your server, and tips for managing recovery and backups effectively without overwhelming you with complexity. Three distinct modes are available within MySQL when setting up your binary logs’ format.

Database 162
article thumbnail

Optimize MongoDB® Pagination

Scalegrid

But how does MongoDB handle pagination, and how can you optimize it for better performance? Implementing pagination can be done using two primary strategies: offset-based and cursor-based methods. Cursor-Based Pagination When dealing with big datasets, offset-based pagination can be less than optimal.

article thumbnail

Number series generator challenge solutions – Part 3

SQL Performance

You can read about the fundamentals of column elimination logic with table expressions in Fundamentals of table expressions, Part 3 – Derived tables, optimization considerations under “Column projection and a word on SELECT *.”. As a reminder, this solution uses a join with a dummy table that has a columnstore index to get batch processing.

C++ 134