in reply to Re^3: Documentation of REGEXP support in DBD::SQLite?
in thread Documentation of REGEXP support in DBD::SQLite?
SCNR - have to show off postgres' regex indexing on a quickly generated 10M row table.
-- table size: 1117 MB -- regex index size: 1727 MB (big index = disadvantage) where txt like '%batman%'; --> 'like' means: search without regex; +uses the trgm index txt + ---------------------------------------------------------------------- +----------- zdfrcj batman igihbky bpwz hzzfmq plyazufcawovvjrlwow xkllfiovgktraw + bmnuyjelj Time: 9.911 ms where txt ~ '\ybatman\y'; --> '~' means: regex search; \y: word b +oundary txt + ---------------------------------------------------------------------- +----------- zdfrcj batman igihbky bpwz hzzfmq plyazufcawovvjrlwow xkllfiovgktraw + bmnuyjelj Time: 13.179 ms
(performance of these regex-indexes (via trigram matching from the pg_trgm extension) is good but the size can be reason not to use them.)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Documentation of REGEXP support in DBD::SQLite?
by LanX (Saint) on Nov 15, 2024 at 09:59 UTC | |
Re^5: Documentation of REGEXP support in DBD::SQLite?
by LanX (Saint) on Nov 15, 2024 at 10:44 UTC | |
by erix (Prior) on Nov 16, 2024 at 03:44 UTC | |
by LanX (Saint) on Nov 16, 2024 at 07:52 UTC | |
by erix (Prior) on Nov 16, 2024 at 08:31 UTC | |
by LanX (Saint) on Nov 16, 2024 at 08:35 UTC |