Skip to main content

Questions tagged [explain]

The EXPLAIN statement can be used to obtain information about the database executes a statement.

0 votes
1 answer
74 views

What makes MariaDB (10.6.22) use a unique index in queries on one server (production) but not on others (staging and dev, both of which are based on the production dumps). Namely I have a table ...
Anton Duzenko's user avatar
0 votes
1 answer
56 views

Running the same query on two tables that only differ in row count (~7.8M vs ~1.4M) results in two different plans, which sounds reasonable. But the execution on the smaller table is 4 to 5 times ...
Jukurrpa's user avatar
  • 195
0 votes
0 answers
55 views

This is my table: learning_postgres=# create table r(id serial primary key, x int not null, y int); CREATE TABLE learning_postgres=# create index r_x_btree_idx on r using btree (x); CREATE INDEX ...
Amir reza Riahi's user avatar
0 votes
2 answers
148 views

My table is like this: CREATE TABLE IF NOT EXISTS public.ticks_a_2507 ( tick_time timestamp(6) with time zone NOT NULL, tick_nano smallint NOT NULL, trade_day date NOT NULL, -- other ...
Leon's user avatar
  • 413
1 vote
0 answers
88 views

I have an RLS policy defined as: create policy read_contacts on contacts as permissive for select using (company_id = (current_setting('nimble.company_id'::text))::bytea); And such query: ...
Mykola Shved's user avatar
0 votes
1 answer
98 views

I need to join two tables product_features and feature_text to get this output From a previous question i got two answers that both return the expected result for a small sample set: join so that ...
surfmuggle's user avatar
0 votes
0 answers
26 views

I am visiting the MongoDB learn DBA course. In one of the labs, it was shown how to optimize the compound index by examining the explain plan. The lab used the sample training dataset. Following query ...
ray's user avatar
  • 206
0 votes
0 answers
99 views

I upgraded the MySQL Server from v5.6 to v5.7 and since then I see query performance degrade. For example, I have the following select query that selects some columns and has a single column in the ...
msbeast's user avatar
  • 21

15 30 50 per page
1
2 3 4 5
17