datalevin

2025-04-16T13:28:54.661629Z

Hi this is a noob question but I just wanted to check. I am doing queries using with where clauses like [(like ?s "pre%")]`. Am I correct that in that case datalevin uses its index to only consider the values prefixed with "pre"? I played with datalevin.core/explain and I am pretty confident it does (comparing with something like [(clojure.string/starst-with ?s "pre")]). So call this an ocd check...

Huahai 2025-04-16T14:40:09.239639Z

Yes. “pre%” gets converted into a range query.

2025-04-16T14:44:04.612399Z

Ok cool I understood the explain return correctly then! Thanks!!!