Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 864d1c3c3cd8df4e3a2692faf8776e05 > files > 1218

db4o-doc-7.4-2.fc13.i686.rpm

<html>
  <head>
    <META http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Configuration Options</title>
    <link rel="stylesheet" type="text/css" href="../../../../style.css">
  </head>
  <body>
    <div class="CommonContent">
      <div class="CommonContentArea">
        <h1>Configuration Options</h1>

<p>Configuration options can also affect the insert
performance. Some of them we've already came across in the previous topics:</p>

<p><i><a href="../../../implementation_strategies/io_adapter/memoryioadapter.html" class="wikiLink">MemoryIoAdapter</a></i>
- improves the insert performance, by replacing disk access with memory access:</p>



<span name="cs_wiki_filter" csw_filters="net">

<p>.NET:</p>

<p><code>configuration.Io(new MemoryIoAdapter());</code></p>

</span>

<p><i><a href="../../performance_hints/no_lock_file_thread.html" class="wikiLink">lockDatabaseFile</a></i>
- reduces the resources consumption by removing database lock thread. Should
only be used for JVM versions &lt; 1.4</p>



<span name="cs_wiki_filter" csw_filters="net">

<p>.NET:</p>

<p><code>configuration.LockDatabaseFile(false);</code></p>

</span>

<p><i><a href="../../performance_hints/turning_off_weak_references.html" class="wikiLink">weakReferences</a></i>
- switching weak references off during insert operation releases extra resources
and removed the cleanup thread.</p>



<span name="cs_wiki_filter" csw_filters="net">

<p>.NET:</p>

<p><code>configuration.WeakReferences(false);</code></p>

</span>

<p><i><a href="../../performance_hints/flushfilebuffers.html" class="wikiLink">FlushFileBuffers</a></i>
- switching off flushFileBuffers can improve commit performance as the commit
information will be cached by the operating system. However this setting is
potentially dangerous and can lead to database corruption.</p>



<span name="cs_wiki_filter" csw_filters="net">

<p>.NET:</p>

<p><code>configuration.FlushFileBuffers(false);</code></p>

</span></div>
    </div>
    <div id="footer">
					This revision (2) was last Modified 2007-12-30T14:40:27 by Tetyana.
				</div>
  </body>
</html>