aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mnesia/doc/src/mnesia.xml
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2011-12-07 09:27:14 +0100
committerDan Gudmundsson <[email protected]>2011-12-07 09:27:14 +0100
commit6b0ab16b86cad902e85b077a078b8f7a6b831205 (patch)
treeff87937bfeb1464fee10d49fd2f7879394760b3f /lib/mnesia/doc/src/mnesia.xml
parent71249e713aaf0f6aea513fd2347b0c5f303d1e6e (diff)
parent14335e788f03ffdbd0540c20623eed9f1fc58de5 (diff)
downloadotp-6b0ab16b86cad902e85b077a078b8f7a6b831205.tar.gz
otp-6b0ab16b86cad902e85b077a078b8f7a6b831205.tar.bz2
otp-6b0ab16b86cad902e85b077a078b8f7a6b831205.zip
Merge branch 'dgud/mnesia/impl-table-options/OTP-8970'
* dgud/mnesia/impl-table-options/OTP-8970: [mnesia] Add possibility for implementation dependent storage options to create_table
Diffstat (limited to 'lib/mnesia/doc/src/mnesia.xml')
-rw-r--r--lib/mnesia/doc/src/mnesia.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/mnesia/doc/src/mnesia.xml b/lib/mnesia/doc/src/mnesia.xml
index 19ec70118f..20133cb6cb 100644
--- a/lib/mnesia/doc/src/mnesia.xml
+++ b/lib/mnesia/doc/src/mnesia.xml
@@ -813,6 +813,21 @@ mnesia:change_table_copy_type(person, node(), disc_copies)
</p>
</item>
<item>
+ <p><c>{storage_properties, [{Backend, Properties}]</c>.
+ Forwards additional properties to the backend storage.
+ <c>Backend</c> can currently be <c>ets</c> or <c>dets</c> and
+ <c>Properties</c> is a list of options sent to the backend storage
+ during table creation. <c>Properties</c> may not contain properties
+ already used by mnesia such as <c>type</c> or <c>named_table</c>.
+ </p>
+ <p>For example:</p>
+ <code type="none">
+mnesia:create_table(table, [{ram_copies, [node()]}, {disc_only_copies, nodes()},
+ {storage_properties,
+ [{ets, [compressed]}, {dets, [{auto_save, 5000}]} ]}])
+ </code>
+ </item>
+ <item>
<p><c>{type, Type}</c>, where <c>Type</c> must be
either of the atoms <c>set</c>, <c>ordered_set</c> or
<c>bag</c>. The default value is <c>set</c>. In a