Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
206 views

The ORDMBS is PostgreSQL 17.5 on x86_64-suse-linux-gnu, compiled by gcc (SUSE Linux) 7.5.0, 64-bit. I have big table (about 150 GB), partitioned. Full table description: CREATE TABLE table_partition (...
Sergei Grigoriev's user avatar
0 votes
0 answers
43 views

I've got the following SELECT statement where all columns are properly indexed with the column they're joining on. I.e. all PKs & FKs have a corresponding, single-column index shown later ending ...
Lovethenakedgun's user avatar
2 votes
1 answer
124 views

A nice feature of SQL Server's query planner is that if you do not use any columns from a joined table, and the join does not affect the cardinality of the query, it can be eliminated altogether. You ...
Ed Avis's user avatar
  • 1,622
1 vote
2 answers
148 views

We have two tables in a Postgres DB. Table1 is a small temp table, Table2 is a huge regular table (> 1 million rows): -- small, temp: CREATE TEMPORARY TABLE Table1 ( uid VARCHAR(15) , idx INTEGER ...
zheng's user avatar
  • 39
-3 votes
1 answer
72 views

I have a parametized query that receives a string as input. This string varies in length, but never smaller than 10 digits, never longer than 14. When I look at sys.dm_exec_query_stats I can see that ...
Leonardo's user avatar
  • 11.5k
0 votes
1 answer
87 views

I have written a query in oracle sql as follows. But the sql query brings the result for a long time. For example, when searching for a customer, the result comes in 4 minutes. Please help me to ...
Narin 's user avatar
  • 19
0 votes
1 answer
93 views

I am currently using the version 8 of Dameng database. In SQL query sentences, I am dealing with a very large table. I have created the same unique index on this table in the development environment, ...
wumingshi's user avatar
1 vote
1 answer
97 views

I am trying to analyze the performance of different query execution plans for a specific object in SQL Server. My goal is to retrieve the top 5 most efficient query plans so that I can compare them ...
Mayur's user avatar
  • 107
0 votes
0 answers
190 views

I have already created the missing index on the table and the plan keeps telling me there is a missing index? <MissingIndexes> <MissingIndexGroup Impact="10.6268"> <...
user254060's user avatar
1 vote
1 answer
305 views

After particular time on solving task and reviewing Snowflake documentation I noticed potential improvement in query for readability and possibly performance improvement. My query is using nested ...
Arthur Shtypuliak's user avatar
0 votes
0 answers
85 views

I am trying to use the LAST_QUERY_PLAN_STATS property to save the QEP Actual of each executed statement in my repository, using DMV sys.dm_exec_query_plan_stats I am able to intercept it and save it ...
AndreaD's user avatar
2 votes
1 answer
579 views

I'm trying to improve the performance of one of our most expensive queries. I'm running EXPLAIN ANALYZE on the sandbox postgres 15 database, which has a much smaller dataset than the production ...
Christian Bueche's user avatar
0 votes
1 answer
220 views

In my application I have a simple insert, when captured with profiler it looks like this insert into ford.tblFordCompoundFlowVehicle (FordCompoundFlowID, CompoundVehicleID, SortOrder, Status1ToSend, ...
GuidoG's user avatar
  • 12.3k
0 votes
2 answers
192 views

I'm using SQL Server 2016/2019. I want to extract (for given @QueryPlanHash BINARY(8) = 0x397CEDB37FA0E1D2) from execution plan XML in cache - which statistics was used to generate that plan. This ...
MegaCalkins's user avatar
0 votes
1 answer
191 views

I have a leading wildcard query I know it is hard to optimize. I know if I use only the trailing wildcard I can do some optimization. But our client wants the leading wildcard because when searching ...
Qiulang's user avatar
  • 12.8k
0 votes
1 answer
90 views

I have the following query: SELECT cp.ID_Case FROM dbo.CaseParty cp (NOLOCK) JOIN dbo.Client cli (NOLOCK) ON CASE WHEN cli.ClientType = 'atty' AND cp.ID_ClientAttorney = cli.ID_Client THEN 1 ...
AngryHacker's user avatar
  • 62.1k
3 votes
2 answers
184 views

As far as I understand, given a query, Oracle tries different approaches based on some heuristics, where I guess the most driving factor is minimizing the number of rows to work with, and then chooses ...
ABu's user avatar
  • 12.5k
2 votes
1 answer
734 views

I'm trying to grab a query plan for my query. However, I do not have direct access to the db and can only run SELECT statements on my end. Is there a way to wrap SELECT around EXPLAIN, maybe even ...
Kamran Maharramli's user avatar
-1 votes
2 answers
122 views

I wrote a SQL query to fetch all movies and, if present, include the name 'Brad Pitt' for movies where he's a cast member. The query is as follows: select m.title, p_cast.person_name From movie m ...
Sérgio Mergen's user avatar
0 votes
1 answer
58 views

I see that a full table scan is planned, however it's never executed and the UPDATE takes a long time anyway. Why?? Here's the EXPLAIN output Update on public.hone_cohortuser (cost=3180.32..8951.51 ...
Marcos's user avatar
  • 1,484
1 vote
1 answer
239 views

I have a table 'analytics_event' (with 9.7M rows) which I need to query for records 'created' after a given time. The table has various indexes which are being ignored in favour of a seq scan over the ...
JP D's user avatar
  • 13
1 vote
1 answer
274 views

Trying to troubleshoot a MariaDB query. We did an explain select on the select. A couple of the rows in the output have value ref|filter for the type column. What does this mean? The MariaDB docs ...
Adam's user avatar
  • 6,812
2 votes
1 answer
966 views

I'm testing how join works with hash index in PostgreSQL 16.2. Here is a test table. Just 2 columns with numbers in text format. create table join_test ( pk varchar(20), fk varchar(20)); ...
Anton Ivanov's user avatar
2 votes
0 answers
318 views

We recently migrated our database from MariaDB version 10.3.39 to 10.6.16 and have encountered significant performance issues with many of our older, mostly unoptimized queries. We've isolated one ...
FabianP's user avatar
  • 21
1 vote
2 answers
408 views

So I have this query which is extremely slow to run - SELECT "conversation".*, "teamBotLocation"."id" AS "teamBotLocation.id", "teamBotLocation&...
Manish Boro's user avatar

1
2 3 4 5
30