How to Make Inserts, Updates, and Deletes Faster: Databases for Developers: Performance #8

  Рет қаралды 19,142

The Magic of SQL

The Magic of SQL

Күн бұрын

Пікірлер: 13
@OmarAbdelaziz__47
@OmarAbdelaziz__47 3 жыл бұрын
Intelligent Metaphor. Your examples are very awesome and intuitive.
@TheMagicofSQL
@TheMagicofSQL 3 жыл бұрын
Thanks, glad you find this useful
@mohammedbadah5537
@mohammedbadah5537 2 жыл бұрын
Great explanation
@andrevinicius137
@andrevinicius137 3 ай бұрын
Pure Gold!
@KINJANBHAVSAR
@KINJANBHAVSAR 4 жыл бұрын
One doubt, what if for each record we want to update the record in database and also call a process to log an event to trigger some automatic action? Is there any efficient way to do that without loop?
@TheMagicofSQL
@TheMagicofSQL 4 жыл бұрын
You want to update the rows and log which rows you updated? You can use RETURNING BULK COLLECT to capture values oracle-base.com/articles/misc/dml-returning-into-clause#collections
@KINJANBHAVSAR
@KINJANBHAVSAR 4 жыл бұрын
The Magic of SQL No, I have json from which I extract data using loop and then I update them in the main table for which the data is and I call a common package process to log that change which inserts that into other table.
@TheMagicofSQL
@TheMagicofSQL 4 жыл бұрын
I'm not sure exactly what you're doing. If you can put together a simple example (create table + inserts + your process) and post it on asktom.oracle.com we'll see what we can do to help
@archananair3274
@archananair3274 2 жыл бұрын
Awesome concepts.but have a doubt - What will be the best approach to delete millions of records (historical transaction data say from year 2008 to 2018)from a table which has many child tables too (32) and in the child tables it has even more data (1 transaction itself can have 1000 records in the child table).And how can we process this in production environment without affecting the active transaction
@TheMagicofSQL
@TheMagicofSQL 2 жыл бұрын
The ideal solution here is to use reference partitioning. This enables you to partition the parent table by date and copy this scheme to all the child tables. Dropping the parent partition removes all the associated rows from the child tables. For details on this see the recording of my Ask TOM Office Hours session on data archival kzbin.info/www/bejne/jXeVZpKkatChqNk
@alisalem8755
@alisalem8755 4 жыл бұрын
Thanks
@masterprattu
@masterprattu 4 жыл бұрын
Amazing videos! thanks for making understanding everything so easily.
@TheMagicofSQL
@TheMagicofSQL 4 жыл бұрын
You're welcome Prathamesh, glad you found this useful :)
How to Find Slow SQL: Databases for Developers: Performance #9
11:16
The Magic of SQL
Рет қаралды 17 М.
Smart Sigma Kid #funny #sigma
00:33
CRAZY GREAPA
Рет қаралды 7 МЛН
Муж внезапно вернулся домой @Oscar_elteacher
00:43
История одного вокалиста
Рет қаралды 6 МЛН
Why no RONALDO?! 🤔⚽️
00:28
Celine Dept
Рет қаралды 84 МЛН
Fastest way to delete data?
7:27
SQL and Database explained!
Рет қаралды 3,9 М.
How to Create Database Indexes: Databases for Developers: Performance #4
12:47
Optimizing SQL Performance
51:42
Oracle Developers
Рет қаралды 33 М.
5 Ways to Improve Your SQL Queries
10:04
Kahan Data Solutions
Рет қаралды 94 М.
How to Read an Execution Plan: Databases for Developers: Performance #1
9:34
Главный секрет SQL! Как ускорить запросы в 1000 раз???
22:02
Андрей Иванов | Python
Рет қаралды 16 М.
What is Parameter Sniffing in SQL Server?
18:02
SQLMaestros
Рет қаралды 5 М.
The five-step guide to SQL tuning | CloudWorld 2022
25:59
Oracle
Рет қаралды 21 М.
How to quickly draw up a plan on iPad Procreate! #ipad手工#设计人
0:37
Анимация логотипа для компании MYCOM
0:46
FreelStep Shorts
Рет қаралды 720 М.