Andrej Pashchenko πΊπ¦ ππ
@Andrej_SQL
Followers
173
Following
815
Media
49
Statuses
216
Database developer, data engineer, Oracle Ace Pro β Born in Ukraine Views are my own
Joined November 2017
Storing UUIDs as RAW values is more efficient than strings But RAW can lead to implicit conversions => poor row estimates If you're stuck with string comparisons @Andrej_SQL shows how to improve row estimates with Extended stats Virtual columns https://t.co/9SPPa3NhmG
blog.sqlora.com
Learn how implicit RAW-to-VARCHAR2 conversions in Oracle break histograms, hurt optimizer estimates, and how to fix them safely.
0
7
19
New post for #JoelKallmanDay! Ever wondered why the Oracle Optimizer sometimes ignores your histograms? Implicit data type conversions might be to blame. Hereβs how to fix it without touching your SQL and with minimal schema impact. #Oracledatabase
https://t.co/DkqCeAAqWc
blog.sqlora.com
Learn how implicit RAW-to-VARCHAR2 conversions in Oracle break histograms, hurt optimizer estimates, and how to fix them safely.
0
5
6
Honored to speak at #HROUG2025 β celebrating its 30th anniversary in amazing Rovinj!πHuge thanks to the organizers for keeping this fantastic community going for 30 years!π Letβs put some old SQL myths to the test together! #Oracle #SQL #Optimizer #Accenture #OracleAce
0
0
4
MERGE ... RETURNING is now supported in #Oracle23ai. In my view, it deserves more visibility in the documentation β it wasnβt easy to find. Even LLMs still claim it doesnβt exist (some even invent error codes). #SQL #MERGE @oracleace
https://t.co/FpbYdL2oDS
blog.sqlora.com
Oracle 23ai finally supports MERGE β¦ RETURNING! A long-awaited feature, but still hard to find in the docs.
2
9
16
Ten years after my first post on the quirks of MERGE and ORA-30926, I took a fresh look at how Oracle 23ai handles it. Clearer error messages, improved diagnostics, and fewer unnecessary restarts. Read the new blog post #Oracle23ai #SQL #MERGE @oracleace
https://t.co/13xIIS7cIk
blog.sqlora.com
Explore how Oracle 23ai improves MERGE behavior and error handling, replacing vague ORA-30926 message with clearer, smarter diagnostics.
0
1
3
Did you know that refreshing HCC-compressed materialized views with atomic_refresh=true can multiply storage usage over time? Small details can have massive impacts. Read the new blog post. #Exadata #Oracle #HCC
@oracleace
https://t.co/sPsa6z6CPQ
blog.sqlora.com
This post explores the behavior of Hybrid Columnar Compression (HCC) in Oracle Exadata while refreshing materialized views with atomic_refresh=true.
0
0
1
Get rows in one table with no match in another with either c1 NOT IN ( SELECT c2 ... ) NOT EXISTS ( SELECT ... where c1 = c2 ) These perform the same in Oracle #SQL ...unless C2 includes NULL values => NOT IN returns no rows! @Andrej_SQL explores https://t.co/VGVFCcWMUS
0
18
78
My @AccentureDACH colleague @Andrej_SQL is going to talk about partition exhange at the @Hroug_Croatia #HROUG2024 conference @oracleace
2
1
6
Everything you should know about block corruptions in #Oracledatabase with @CGohmannDE at #hroug2024
0
1
7
On this #JoelKallmanDay, I would like to follow up on my last year's post, comparing #SQLβs NOT IN and NOT EXISTS, focusing on their usage, interchangeability and some myths about performance differences. https://t.co/Vhxo8nRPgQ
#Oracledatabase
blog.sqlora.com
This post compares SQLβs NOT IN and NOT EXISTS, focusing on NULL handling, performance differences, and debunking common myths about their usage and interchangeability.
0
7
20
And if you want to use your existing views and let SQL macros "inject" parameter, you can check the second part ( https://t.co/C8oITOekFk) of this post and also @StewAshton 's post:
stewashton.wordpress.com
[UPDATE 2025-03-04: Yesterday I thought this solution did not work with bind variables, but Iudith Mentzel has corrected me, it works fine. My latest tests were buggy. Sorry for the confusionβ¦β¦
Views are great for creating reusable #SQL statements But they have a drawback: you can't pass parameters to them! @Andrej_SQ shows how to emulate these with SQL macros in Oracle Database Use these to create parameterized query templates https://t.co/oXL1p6Y1Zr
0
1
4
I am absolutely thrilled to be presenting at the #HROUG2024 for the first time. Thanks @Hroug_Croatia for accepting my talks. In just two weeks! See you there! @oracleace
0
2
10
There have been some changes and improvements to the Online Statistics Gathering for Bulk Loads over the last few years. Here is the new blog post: #oracledatabase
@oracleace
https://t.co/YxVA8ueOYt
blog.sqlora.com
Here is an overview of some improvements to Online Statistics Gathering in Oracle Releases 19c-23ai
0
1
4
Oh and what I've missed to share so far: I will be speaking about SQL macros at the #DOAG2024-Conference in November in Nuremberg. Thank you @DOAGeV for accepting my talk. See you there! #sqlmacros #oracledatabase #sql @oracleace
6
0
1
And the second one about SQM and the WITH clause: https://t.co/BadEX9LpA9
#sqlmacros #oracledatabase #sql
blog.sqlora.com
Using trace information this post shows how using WITH clause with SQL macros can lead to nested WITH clauses which is not allowed.
1
0
0
Looking at the trace output for SQM expansion can help to interpret some error messages and perhaps understand some of the limitations. Two new blog posts about this: https://t.co/Wit4uCnC6L
#sqlmacros #oracledatabase #sql @oracleace
blog.sqlora.com
This blog post uses insights into SQL macro expansion available with the CBO trace to explain some limitations. The workaround to make SQL macros more dynamic - with its related risks - is discussed.
1
0
1
Join AOUG Anwenderkonferenz 2024 next week for many great sessions presented by Oracle ACEs π @alexnuijten @Ambili_Thots @Andrej_SQL @JrgDoppelreiter @martinberger_ch @Mirela_RoOUG @RoelH @rsantrod @oraclesean @stefanoehrli
https://t.co/WFvZRRd0eB
#OracleACE
0
11
27
As a data engineer, do I have to worry about optimizer statistics? In the second part is a typical example of why the performance immediately after loading the data can be suboptimal if you don't take care of the stats. #oracledatabase
@oracleace
https://t.co/OJ1bKVzRwU
blog.sqlora.com
This post shows how querying of newly inserted data leads to performance issues due to βout-of-rangeβ predicates if statistics are not up-to-date.
0
1
6
I will talk about optimizer statistics at #AOUG Conference on June 17th, in particular what my responsibilities as a data engineer are. I think it's very important that it's not seen as just a DBA's job. Here is just one simple example of why: https://t.co/dD7F5YQdTW
@oracleace
blog.sqlora.com
Using a practical example, the post describes the authorβs view on the conscious approach to optimizer statistics in ETL processes
0
1
7