Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 864d1c3c3cd8df4e3a2692faf8776e05 > files > 1267

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

<html>
  <head>
    <META http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>No Class Index</title>
    <link rel="stylesheet" type="text/css" href="../../../style.css">
  </head>
  <body>
    <div class="CommonContent">
      <div class="CommonContentArea">
        <h1>No Class Index</h1><div id="TOC"><div id="TOCinner"><span class="TOCtitle">Contents</span><div class="TOCcontents"><ul><li><a href ="#Advantage">Advantage</a></li><li><a href ="#Effect">Effect</a></li><li><a href ="#Alternate Strategies">Alternate Strategies</a></li></ul></li></ul></div></div></div>

<span name="cs_wiki_filter" csw_filters="net"><p>.NET:&nbsp;</p>

<p><code>configuration.ObjectClass("namespace.classname,
assembly").Indexed(false);</code></p>

</span>



<p>Turns class index off.</p><a name="Advantage"></a><h2>Advantage</h2>

<p>Allows to improve the performance to delete
and create objects of a class. </p>



<a name="Effect"></a><h2>Effect</h2>

<p>db4o maintains an index for each class to be
able to deliver all instances of a class in a query. In some cases class index
is not necessary:</p>

<ul><li>the application always works with subclasses or superclasses;</li><li>there are convenient field indexes that will always find instances
     of a class;</li><li>the application always works with IDs.</li></ul>

<p><code>Indexed(false)</code> setting will save
resources on maintaining the class index on create and delete of the class
objects.</p>





<a name="Alternate Strategies"></a><h2>Alternate Strategies</h2>

<p>Object creation performance can be improved using
<a href="calling_constructors.html" class="wikiLink">configuration.callConstructors(true)</a> setting.</p>

<p>General read/write performance can be improved with the
<a href="reserving_storage_space.html" class="wikiLink">configuration.reserveStorageSpace(byteCount)</a>
setting.</p>





</div>
    </div>
    <div id="footer">
					This revision (4) was last Modified 2007-05-07T16:42:29 by Tetyana.
				</div>
  </body>
</html>