[erlang-questions] Mnesia Fragmented tables..... feature or bug?

Eranga Udesh <>
Tue Oct 17 06:51:25 CEST 2006

Thanks for the reply. 

However my question is when using Fragmented tables and Frag module, the
returned result is only by traversing the 1st fragment of the table and is
an empty list (if no matching data in 1st fragment), even there matching
data in other fragments.

Is it due to something I do wrong or that is how it is?

- Eranga

-----Original Message-----
[mailto:] On Behalf Of Dan Gudmundsson
Sent: Monday, October 16, 2006 6:13 PM
Subject: [erlang-questions] Mnesia Fragmented tables..... feature or bug?

>From the man page:

For efficiency the NObjects is a recommendation only and the result
may contain anything from an empty list to all available results.


Eranga Udesh writes:
 > Hi,
 > In a Fragmented Table, when I ran select/4, I get {Objects, Cont}.
 > to the returned result, it looks to me that select only runs in the First
 > Table Fragment, even though the result count is less than the NObjects
 > specified. However, if I iterate select/1 in the Cont returned until
 > '$end_of_table', I can get all the other results. I suppose select/4
 > do the iteration in all the Table Fragment, until the returned record
 > becomes > NObjects. Is this a bug or feature in Mnesia Frag Access
erlang-questions mailing list


More information about the erlang-questions mailing list