in reply to Re^2: Documentation of REGEXP support in DBD::SQLite?
in thread Documentation of REGEXP support in DBD::SQLite?
Native means for me without call overhead and efficiently compiled (subset of) regexes.
Regarding indexes, I can only imagine a small subset of regexes capable to profit from them, unless a lot of special case optimisation was implemented¹.
It should be quite complicated to achieve this with a pluggable extension...
But again I don't know ... This you should better ask at a DBM-board.
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
¹) I'm not even sure a substring search with LIKE %substr% can take advantage from the index, the differences in your benchmark are not in magnitudes, this could be easily explained with "call overhead and efficiently compiled code".
A real "index search" should be dramatically faster than just factor 4.
And, as a side note, your regexes were much more complicated than a substr search. Apples and oranges...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Documentation of REGEXP support in DBD::SQLite?
by cavac (Prior) on Nov 20, 2024 at 14:15 UTC | |
by LanX (Saint) on Nov 20, 2024 at 15:05 UTC | |
by LanX (Saint) on Nov 21, 2024 at 14:34 UTC |