<div dir="ltr"><pre style>If I use select when the key is tuple with placeholders, something like this (taken from erlang docs and changed a bit):</pre><pre>MatchHead = #person{name = {'$1', "K", "Jameson"}, sex = '$2', _ = '_'},</pre>
<pre>Result = '$2',</pre><pre>mnesia:select(Tab,[{MatchHead, [], [Result]}])</pre><pre style> where name is the table key</pre><pre style>will mnesia do full table scan in this case? Or it will be smarter and select all records with key matching {_, "K", "Jameson"} using index somehow? </pre>
</div>