Skip to content

Instantly share code, notes, and snippets.

@ereshzealous
Created September 7, 2021 09:20
Show Gist options
  • Save ereshzealous/3901f5fea90b7dc20c8e1a89f3af9797 to your computer and use it in GitHub Desktop.
Save ereshzealous/3901f5fea90b7dc20c8e1a89f3af9797 to your computer and use it in GitHub Desktop.
explain analyze select * from user_details where details ->> 'hasDisability' = 'false' limit 50;
QUERY PLAN |
----------------------------------------------------------------------------------------------------------------------|
Limit (cost=0.00..725.37 rows=50 width=426) (actual time=0.014..0.064 rows=50 loops=1) |
-> Seq Scan on user_details (cost=0.00..272014.00 rows=18750 width=426) (actual time=0.013..0.058 rows=50 loops=1)|
Filter: ((details ->> 'hasDisability'::text) = 'false'::text) |
Rows Removed by Filter: 70 |
Planning Time: 0.062 ms |
Execution Time: 0.079 ms |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment