Skip to main content

Questions tagged [index-tuning]

The process of determining which indexes are useful and which are not.

0 votes
0 answers
45 views

I've already asked this question in the SQL Server Community Slack as well as on Reddit. I know these communities overlap quite a bit, so just to clarify - I'm simply trying to do a bunch of ...
Chad Baldwin's user avatar
0 votes
1 answer
51 views

MongoDB has an Equality, Sort, Range (ESR) guideline that has helped me tune my MongoDB indices in the past. Now I'm using a SQLite database on a side-project of mine and I'm curious if ESR guidelines ...
Bora M. Alper's user avatar
0 votes
0 answers
74 views

I reindexed (concurrently) an index on the biggest table used in a query, but for some reason the latency of the query has increased from aroun 6 ms to 150-200 ms. The reindex was performed because ...
notem101's user avatar
0 votes
2 answers
90 views

In PostgreSQL 16.9 I have a table Time (duration, resourceId, date, companyId) representing timesheet entries and table Resources (id, name); I want to list sum of Time durations per week and employee ...
Lukas Macha's user avatar
3 votes
2 answers
554 views

I know, at least theoretically, that heap tables can be partitioned. As I learn more about table partitioning, I realise that the use case is very limited. Similarly, the use case for heaps in SQL ...
J. Mini's user avatar
  • 1,362
0 votes
1 answer
39 views

We have huge collections that are having multiple indexes in mongodb with multiple shards. Since the deletion process is time consuming , and ttl mongo simply does not works, we have switched to semi ...
Yulian Oifa's user avatar
1 vote
1 answer
127 views

I have a database that contains two tables, containing these columns (some irrelevant columns have been omitted): Containers table Id nvarchar(20) NOT NULL primary key, value generated before insert ...
Shtong's user avatar
  • 111
1 vote
1 answer
59 views

My question is regarding the Explain output. Please refer the below query and its Explain command output Explain update test.table1 t1 join test.table2 t2 on t1.field1=t2.field1 and t1.field2=t2....
jithin giri's user avatar
0 votes
1 answer
127 views

I have the following tables: CREATE TABLE IF NOT EXISTS users ( id NUMERIC(20, 0) NOT NULL DEFAULT NEXTVAL('users_sequence') PRIMARY KEY, list_id ...
Hasan Can Saral's user avatar
2 votes
1 answer
117 views

I have a table with over 10 million rows tracking user activities. I created a nonclustered index on (UserID, DtModified DESC), which performs well for queries filtering a single user. However, when ...
lifeisajourney's user avatar
0 votes
1 answer
70 views

I have the following table: CREATE TABLE transactions ( id NUMERIC(20, 0) NOT NULL DEFAULT NEXTVAL('transactions_sequence') PRIMARY KEY,...
Hasan Can Saral's user avatar
0 votes
0 answers
60 views

This is my table: CREATE TABLE IF NOT EXISTS public.ob_samples_sc5555 ( stamp timestamp(6) with time zone NOT NULL, oblvl smallint NOT NULL, olots integer NOT NULL, CONSTRAINT ...
Leon's user avatar
  • 413
1 vote
1 answer
158 views

I have a large table in SQL Server that is queried using a stored procedure with dynamic SQL to handle various filter combinations and dynamic ordering. I’m unsure whether I should create indexes for ...
lifeisajourney's user avatar
1 vote
1 answer
129 views

If you are well read on partitioning, then you will be completely aware that partitioning is not a performance feature for rowstore indexes. However, whenever I see arguments made for this, as most ...
J. Mini's user avatar
  • 1,362
0 votes
3 answers
130 views

I am working on cleaning up/optimizing indexes. I have run Find-DbaDbDuplicateIndex in PowerShell on one of my SQL Instances and identified 5 sets of "duplicate" indexes. 1 is a non-...
Wayne Cochran's user avatar

15 30 50 per page
1
2 3 4 5
63