Skip to main content

Questions tagged [optimization]

In the context of a database, optimisation refers to the process of the query optimiser selecting an efficient physical execution plan.

4 votes
3 answers
1k views

We have a core stored procedure that's a critical part of our system and gets called thousands of times every hour to handle important operations. Now, there's a new application being introduced that ...
lifeisajourney's user avatar
2 votes
2 answers
166 views

Originally, I was working with .NET 9 and a Blazor web app for admin and a Flutter app for external end-user, but for this context, I constrained it to SQL Server 2017, to evaluate it first internally....
DevQt's user avatar
  • 205
0 votes
0 answers
45 views

Actually, here the issue is not with like operator. For each deviceid. I have 30 lack records like that I'm sending 100 device IDs. so, this is causing issue for slowness, and it is well indexed. can ...
Aravind's user avatar
  • 11
2 votes
0 answers
29 views

I have a large temporal table (>20 million rows) that contains data over time on about 15k unique objects. I can't figure out how to efficiently query "get the most recent record for each ...
hobbes274's user avatar
0 votes
1 answer
70 views

WITHOUT ROWID is an sqlite optimization. Doc states, it is making the primary key of the table to a clustered index. As far I know, clustered index means that the physical ordering of the rows will ...
peterh's user avatar
  • 2,137
1 vote
0 answers
118 views

I have a query that works fine on MariaDB 10.4 and later versions of 10.x, but after upgrading to MariaDB 11.4, it has become significantly slower. After some testing, I found that this change ...
Hekimen's user avatar
  • 11
2 votes
0 answers
81 views

I'm using a PG13 server as a feature DB. There is no else job on the server but this PG instance and a GPU based machine learning process. There is no online transaction, and the data lossing or ...
Leon's user avatar
  • 413
1 vote
1 answer
190 views

We are using PostgreSql-13 as our core server, and encountered a performance bottleneck. The hardware includes 2 CPUs(AMD EPYC9754 with 128 core 256 threads of each), 128GB memory, hardware RAID0 ...
Leon's user avatar
  • 413
4 votes
1 answer
472 views

Recently, we updated the compatibility level of our SQL Server from 2012 to 2016, but after updating the compatibility level we ran into performance issues when a lot of sub queries are used. ...
urk_forever's user avatar
0 votes
1 answer
63 views

I have a MySQL setup with configs that can be tagged with any number of tags. I'm attempting to optimize a query that returns the total number of times a tag has been used to tag a config. tags id, ...
S Code's user avatar
  • 1
0 votes
0 answers
61 views

I'd like to ask which of the following two functions is better for retrieving a hierarchical list of child items from a table. Here are the two function definitions: Version 1 (Recursive CTE): CREATE ...
KaliTheGreat's user avatar
0 votes
1 answer
136 views

I have a large table (table_A) in PostgreSQL with the following characteristics: 51 columns 500 million records Approximate size: 200GB I frequently perform CRUD operations, but these operations are ...
Purushottam Nawale's user avatar
2 votes
1 answer
401 views

Are there two levels of constant folding, one in the conversion tree and one in the simplification phase? If I run the following query SELECT P.[ProductID] FROM Production.Product AS P WHERE ...
Suleyman Essa's user avatar
1 vote
3 answers
2k views

I have a PostgreSQL 16 database setup with the following configuration: -- DB Version: 16 -- OS Type: linux -- DB Type: oltp -- Total Memory (RAM): 64 GB -- CPUs num: 32 -- Connections num: 200 -- ...
Purushottam Nawale's user avatar
0 votes
1 answer
94 views

How can I speed up this below query ? I have a ~large table url_meta 90 million records, 38 GB data, 6 GB index Main unique id of each row is url_hash (a md5 truncated to 16 chars) Then I created a ...
adrianTNT's user avatar
  • 206

15 30 50 per page