From 9b5c49fd0c06459f2b2f8becc60a0fb70eb9d3ea Mon Sep 17 00:00:00 2001 From: Magnus Henoch Date: Thu, 14 Sep 2017 16:58:53 +0100 Subject: Mnesia: note first, next, prev and last vs fragmented tables In the Table Fragmentation documentation section, note that the functions first/1, next/2, prev/2 and last/1 return elements in an undefined order for fragmented tables. Also remove superfluous "the". --- lib/mnesia/doc/src/Mnesia_chap5.xmlsrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/mnesia/doc/src/Mnesia_chap5.xmlsrc b/lib/mnesia/doc/src/Mnesia_chap5.xmlsrc index 62759c624b..0265e0efa0 100644 --- a/lib/mnesia/doc/src/Mnesia_chap5.xmlsrc +++ b/lib/mnesia/doc/src/Mnesia_chap5.xmlsrc @@ -226,8 +226,10 @@ not known beforehand, all fragments are searched for matching records.

Notice that in ordered_set tables, the records - are ordered per fragment, and the the order is undefined in - results returned by select and match_object.

+ are ordered per fragment, and the order is undefined in + results returned by select and match_object, + as well as first, next, prev and + last.

The following code illustrates how a Mnesia table is converted to be a fragmented table and how more fragments are added later:

-- cgit v1.2.3