<div dir="ltr">Thank you Vance this is valuable example, <div><br></div><div>how does Continuity holds up against changes in table between mnesia:select calls? </div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 10, 2019 at 3:52 PM Vance Shipley <<a href="mailto:vances@motivity.ca">vances@motivity.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, Jun 10, 2019 at 6:46 PM Karlo Kuna <<a href="mailto:kuna.prime@gmail.com" target="_blank">kuna.prime@gmail.com</a>> wrote:<br>
> i was wandering was ti the best way to paginate mnesia table. Problem is hot to get N record from/or up to record X ? I'm interested in ways of doing that without qlc.<br>
<br>
Use mnesia:select./4 which takes a Size argument and returns a Continuity.<br>
The trick is to use an ets context, not a transaction.<br>
<br>
Here's an example from one of our projects:<br>
<a href="https://github.com/sigscale/rim/blob/master/src/im.erl#L167" rel="noreferrer" target="_blank">https://github.com/sigscale/rim/blob/master/src/im.erl#L167</a><br>
<br>
-- <br>
     -Vance<br>
</blockquote></div>