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

Eranga Udesh casper2000a@REDACTED
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?

Thanks,
- Eranga


-----Original Message-----
From: erlang-questions-bounces@REDACTED
[mailto:erlang-questions-bounces@REDACTED] On Behalf Of Dan Gudmundsson
Sent: Monday, October 16, 2006 6:13 PM
To: erlang-questions@REDACTED
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.

/Dan


Eranga Udesh writes:
 > Hi,
 > 
 >  
 > 
 > In a Fragmented Table, when I ran select/4, I get {Objects, Cont}.
According
 > 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
value
 > 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
should
 > do the iteration in all the Table Fragment, until the returned record
count
 > becomes > NObjects. Is this a bug or feature in Mnesia Frag Access
Module?
_______________________________________________
erlang-questions mailing list
erlang-questions@REDACTED
http://www.erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list