Last active
August 29, 2015 14:18
-
-
Save aymanosman/be895a7d05bb6c14bcbe to your computer and use it in GitHub Desktop.
Explain select on uuid::varchar
This file contains hidden or 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 select * from tablename where uuid LIKE 'as%'; | |
QUERY PLAN | |
----------------------------------------------------------------------------------------------------------------------- | |
Index Scan using tablename_uuid_like on tablename (cost=0.14..8.16 rows=1 width=1476) | |
Index Cond: (((uuid)::text ~>=~ 'as'::text) AND ((uuid)::text ~<~ 'at'::text)) | |
Filter: ((uuid)::text ~~ 'as%'::text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment