Created
September 7, 2021 09:22
-
-
Save ereshzealous/baa6735e4dad2268fbc465b81ad8b025 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
explain analyze select * from user_details where details ->> 'alternateContacts' like '%+6171836370278%'; | |
QUERY PLAN | | |
---------------------------------------------------------------------------------------------------------------------------------| | |
Gather (cost=1000.00..236670.25 rows=3750 width=426) (actual time=633.497..639.577 rows=1 loops=1) | | |
Workers Planned: 2 | | |
Workers Launched: 2 | | |
-> Parallel Seq Scan on user_details (cost=0.00..235295.25 rows=1562 width=426) (actual time=619.500..619.760 rows=0 loops=3)| | |
Filter: (details @> '{"alternateContacts": ["+6171836370278"]}'::jsonb) | | |
Rows Removed by Filter: 1250000 | | |
Planning Time: 0.047 ms | | |
JIT: | | |
Functions: 6 | | |
Options: Inlining false, Optimization false, Expressions true, Deforming true | | |
Timing: Generation 1.705 ms, Inlining 0.000 ms, Optimization 1.217 ms, Emission 13.630 ms, Total 16.552 ms | | |
Execution Time: 1540.115 ms | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment