Even faster than DBMS_PARALLEL_EXECUTE

  Рет қаралды 4,160

SQL and Database explained!

SQL and Database explained!

Күн бұрын

If you have a huge set of data and you need to efficiently divide it up into subsets, what is the best way to do it? Using an index probably isn't going to work because you're still scanning lots of data. Using a full scan to get each subset probably just makes the problem even worse.
DBMS_PARALLEL_EXECUTE has some usefulness, but can we go one step further? Can we get the optimal way to separate data into chunks???
blog: connor-mcdonal...
twitter: / connor_mc_d
Subscribe for new tech videos every week
All other social media channels here: linktr.ee/connor
Are you serious? A free Oracle database forever ?!?!?!?! Hell yeah!!!
www.oracle.com...
Music: Night Owl (Broke For Free)
, Dyalla
#oracle #rowid #dbms_parallel_execute

Пікірлер: 13
@praveenkumar-fx5wx
@praveenkumar-fx5wx 4 жыл бұрын
Great lesson, thanks!
@bzezinahapolania9086
@bzezinahapolania9086 2 жыл бұрын
You mention it is possible to use dbms_parallel_execute to do Alter index rebuild…can you present an example for that ?
@laurentiuoprea06
@laurentiuoprea06 4 жыл бұрын
Will this apply if I have a bigfile tablespace?
@kaleycrum6350
@kaleycrum6350 4 жыл бұрын
Hi Connor! I don't understand how breaking it down by file helps. We're still doing table access by rowid range, right? Is the objective to ensure that multi-block reads are not interrupted by file breaks?
@DatabaseDude
@DatabaseDude 4 жыл бұрын
We guarantee that we won't ever have to scan a range of data that does not apply to this table. You only get a multiblock read breaks for the first smaller extents, but once they hit 1meg there will not be a break. And presumably you're only going to use this for a tables of some significant size.
@kaleycrum6350
@kaleycrum6350 4 жыл бұрын
@@DatabaseDude why would we be scanning data outside the current table?
@SheetalGuptas
@SheetalGuptas 4 жыл бұрын
Hi thanks for this session. Is it possible for you to share the script used in this session
@DatabaseDude
@DatabaseDude 4 жыл бұрын
Yes - its here github.com/connormcd/misc-scripts/tree/master/office-hours
@lizreen9563
@lizreen9563 3 жыл бұрын
Great site and scripts! I just can't find the one for this video.
@berndeckenfels
@berndeckenfels 4 жыл бұрын
You own list of chunks is not better than the parallel dunks, you still have multiple per File. It only might decrease the seeking for a given job, bu then it has much more jobs with less predictable overall size. So i am not sure it’s worth it (but the queries are neat, do they translate well to ASM and Exa?)
@DatabaseDude
@DatabaseDude 4 жыл бұрын
The number of jobs is unrelated to the number of chunks - it is governed by the job queue parameters. It is not multiple per file that is what we are trying to avoid, it is about guaranteeing that we won't ever have to scan a range of data that does not apply to this table.
@berndeckenfels
@berndeckenfels 4 жыл бұрын
@@DatabaseDude Ah I see, you mean DBMS_PARALLEL does not skip over file extends which are not part of the table. That does look like a important possible improvement.
@berndeckenfels
@berndeckenfels 4 жыл бұрын
@@DatabaseDude but it produces multiple tasks per file if they have multiple non-consecutive extends (however I guess it doesnt really matter if you access a single file in parallel or multiple, but since you explicitely mentioned that this happens with the standard method, it also happens with yours)
1 mistake and a child can hack your database in 5 minutes!
5:39
SQL and Database explained!
Рет қаралды 1,7 М.
New Parallel DML Hint - Quirks and Features
10:32
SQL and Database explained!
Рет қаралды 3 М.
ЛУЧШИЙ ФОКУС + секрет! #shorts
00:12
Роман Magic
Рет қаралды 20 МЛН
Colorful Pasta Painting for Fun Times! 🍝 🎨
00:29
La La Learn
Рет қаралды 308 МЛН
Wait for it 😂
00:19
ILYA BORZOV
Рет қаралды 10 МЛН
My THREE rules for SQL TUNING
12:45
SQL and Database explained!
Рет қаралды 4,4 М.
The FASTEST way to unload data to CSV
12:37
SQL and Database explained!
Рет қаралды 4,7 М.
The BEST way to FETCH from the database
11:58
SQL and Database explained!
Рет қаралды 1,8 М.
Oracle Parallel Execution Plans Deep Dive
44:23
Randolf Eberle-Geist
Рет қаралды 7 М.
Should I reorganize my table to reclaim space ?
10:09
SQL and Database explained!
Рет қаралды 2 М.
The five-step guide to SQL tuning | CloudWorld 2022
25:59
Oracle
Рет қаралды 20 М.
The KEEP clause will KEEP your SQL queries SIMPLE!
7:06
SQL and Database explained!
Рет қаралды 4,2 М.
Real-Life SQL Tuning: From Four Minutes to Eight Seconds in an Hour
41:20
Oracle Developers
Рет қаралды 36 М.
Why Rebuild Indexes? | #dailyDBA 20
30:50
DBA Genesis
Рет қаралды 25 М.
ЛУЧШИЙ ФОКУС + секрет! #shorts
00:12
Роман Magic
Рет қаралды 20 МЛН