title: How to select only X number of records from mnesia
body: <p>I want to select only X number of records from mnesia. Do we have any function call which provide this functionality?</p>
  
  <p>I am using :mnesia.select to fetch all the records from mnesia table, but I want to fetch only X number of records from mnesia table:</p>
  
  <pre><code>Mnesia.transaction(fn -&gt;
    Mnesia.select(
      Person,
      [{{Person, :"$1", :"$2", :"$3"}, [{:&gt;, :"$1", 3}], [:"$$"]}]
    )
  end)
  </code></pre>