[erlang-questions] Mnesia select, field starts with

John Doe <>
Sat Jan 2 21:52:55 CET 2016


Hi,
Is there a way to do select queries from a mnesia table with a 'startswith'
guard on a binary field, without qlc?

And the second question. Assume we have an ordered_set table with a
secondary index. When there are two guard tests in a guard, one for key
field, another for index field, will mnesia use both indexes, or just the
the primary one? I know that mnesia is aware about secondary indexes when
it does selects, but does it use indexes always, or just when the guard
tests only one field, the one with secondary index?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160102/198b641b/attachment.html>


More information about the erlang-questions mailing list