⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 performance.po

📁 hibernate 开源框架的代码 jar包希望大家能喜欢
💻 PO
📖 第 1 页 / 共 5 页
字号:
#: performance.xml:496#, no-c-formatmsgid """With a <literal>batch-size</literal> of 3, Hibernate will load 3, 3, 3, 1 ""collections in four <literal>SELECT</literal>s. Again, the value of the ""attribute depends on the expected number of uninitialized collections in a ""particular <literal>Session</literal>."msgstr """Com um <literal>batch-size</literal> de 3, o Hibernate irá carregar 3, 3, 3, ""1 coleções em 4 <literal>SELECT</literal>s. Novamente, o valor do atributo ""depende do número esperado de coleções não inicialiadas em determinada ""<literal>Session</literal>."#. Tag: para#: performance.xml:502#, no-c-formatmsgid """Batch fetching of collections is particularly useful if you have a nested ""tree of items, ie. the typical bill-of-materials pattern. (Although a ""<emphasis>nested set</emphasis> or a <emphasis>materialized path</emphasis> ""might be a better option for read-mostly trees.)"msgstr """A busca em lote de coleções é particularmente útil quando você tem uma ""árvore encadeada de items, ex. o típico padrão bill-of-materials (Se bem que ""um <emphasis>conjunto encadeado</emphasis> ou <emphasis>caminho ""materializado </emphasis> pode ser uma opção melhor para árvores com mais ""leitura)"#. Tag: title#: performance.xml:511#, no-c-formatmsgid "Using subselect fetching"msgstr "Usando subselect fetching"#. Tag: para#: performance.xml:513#, no-c-formatmsgid """If one lazy collection or single-valued proxy has to be fetched, Hibernate ""loads all of them, re-running the original query in a subselect. This works ""in the same way as batch-fetching, without the piecemeal loading."msgstr """Se uma coleção ou proxy simples precisa ser recuperado, o Hibernate carrega ""todos eles rodando novamente a query original em um subselect. Isso funciona ""da mesma maneira que busca em lote, sem carregar tanto."#. Tag: title#: performance.xml:524#, no-c-formatmsgid "Using lazy property fetching"msgstr "Usando busca preguiçosa de propriedade"#. Tag: para#: performance.xml:526#, no-c-formatmsgid """Hibernate3 supports the lazy fetching of individual properties. This ""optimization technique is also known as <emphasis>fetch groups</emphasis>. ""Please note that this is mostly a marketing feature, as in practice, ""optimizing row reads is much more important than optimization of column ""reads. However, only loading some properties of a class might be useful in ""extreme cases, when legacy tables have hundreds of columns and the data ""model can not be improved."msgstr """O Hibernate3 suporta a carga posterior de propriedades individuais. Essa ""técnica de otimização também conhecida como <emphasis>fetch groups</""emphasis>. Veja que isso é mais uma funcionalidade de marketing já que na ""prática, é mais importante otimização nas leituras dos registros do que na ""leitura das colunas. Porém, carregar apenas algumas propriedades de uma ""classe pode ser útil em casos extremos, onde tabelas legadas podem ter ""centenas de colunas e o modelo de dados não pode ser melhorado."#. Tag: para#: performance.xml:535#, no-c-formatmsgid """To enable lazy property loading, set the <literal>lazy</literal> attribute ""on your particular property mappings:"msgstr """Para habilitar a carga posterior de propriedade, é preciso setar o atributo ""<literal>lazy</literal> no seu mapeamento de propriedade:"#. Tag: programlisting#: performance.xml:540#, no-c-formatmsgid """<![CDATA[<class name=\"Document\">\n""       <id name=\"id\">\n""        <generator class=\"native\"/>\n""    </id>\n""    <property name=\"name\" not-null=\"true\" length=\"50\"/>\n""    <property name=\"summary\" not-null=\"true\" length=\"200\" lazy=\"true""\"/>\n""    <property name=\"text\" not-null=\"true\" length=\"2000\" lazy=\"true\"/"">\n""</class>]]>"msgstr ""#. Tag: para#: performance.xml:542#, no-c-formatmsgid """Lazy property loading requires buildtime bytecode instrumentation! If your ""persistent classes are not enhanced, Hibernate will silently ignore lazy ""property settings and fall back to immediate fetching."msgstr """A carga posterior de propriedades requer instrumentação de bytecode! Se suas ""classes persistentes não forem melhoradas, o Hibernate irá ignorar ""silenciosamente essa configuração e usará busca imediatamente."#. Tag: para#: performance.xml:548#, no-c-formatmsgid "For bytecode instrumentation, use the following Ant task:"msgstr "Para instrumentação de bytecode, use a seguinte tarefa do Ant:"#. Tag: programlisting#: performance.xml:552#, no-c-formatmsgid """<![CDATA[<target name=\"instrument\" depends=\"compile\">\n""    <taskdef name=\"instrument\" classname=\"org.hibernate.tool.instrument.""InstrumentTask\">\n""        <classpath path=\"${jar.path}\"/>\n""        <classpath path=\"${classes.dir}\"/>\n""        <classpath refid=\"lib.class.path\"/>\n""    </taskdef>\n""\n""    <instrument verbose=\"true\">\n""        <fileset dir=\"${testclasses.dir}/org/hibernate/auction/model\">\n""            <include name=\"*.class\"/>\n""        </fileset>\n""    </instrument>\n""</target>]]>"msgstr ""#. Tag: para#: performance.xml:554#, no-c-formatmsgid """A different (better?) way to avoid unnecessary column reads, at least for ""read-only transactions is to use the projection features of HQL or Criteria ""queries. This avoids the need for buildtime bytecode processing and is ""certainly a prefered solution."msgstr """A different (better?) way to avoid unnecessary column reads, at least for ""read-only transactions is to use the projection features of HQL or Criteria ""queries. This avoids the need for buildtime bytecode processing and is ""certainly a prefered solution."#. Tag: para#: performance.xml:561#, no-c-formatmsgid """You may force the usual eager fetching of properties using <literal>fetch ""all properties</literal> in HQL."msgstr """You may force the usual eager fetching of properties using <literal>fetch ""all properties</literal> in HQL."#. Tag: title#: performance.xml:571#, no-c-formatmsgid "The Second Level Cache"msgstr "The Second Level Cache"#. Tag: para#: performance.xml:573#, no-c-formatmsgid """A Hibernate <literal>Session</literal> is a transaction-level cache of ""persistent data. It is possible to configure a cluster or JVM-level ""(<literal>SessionFactory</literal>-level) cache on a class-by-class and ""collection-by-collection basis. You may even plug in a clustered cache. Be ""careful. Caches are never aware of changes made to the persistent store by ""another application (though they may be configured to regularly expire ""cached data)."msgstr """A Hibernate <literal>Session</literal> is a transaction-level cache of ""persistent data. It is possible to configure a cluster or JVM-level ""(<literal>SessionFactory</literal>-level) cache on a class-by-class and ""collection-by-collection basis. You may even plug in a clustered cache. Be ""careful. Caches are never aware of changes made to the persistent store by ""another application (though they may be configured to regularly expire ""cached data)."#. Tag: para#: performance.xml:581#, no-c-formatmsgid """You have the option to tell Hibernate which caching implementation to use by ""specifying the name of a class that implements <literal>org.hibernate.cache.""CacheProvider</literal> using the property <literal>hibernate.cache.""provider_class</literal>. Hibernate comes bundled with a number of built-in ""integrations with open-source cache providers (listed below); additionally, ""you could implement your own and plug it in as outlined above. Note that ""versions prior to 3.2 defaulted to use EhCache as the default cache ""provider; that is no longer the case as of 3.2."msgstr """You have the option to tell Hibernate which caching implementation to use by ""specifying the name of a class that implements <literal>org.hibernate.cache.""CacheProvider</literal> using the property <literal>hibernate.cache.""provider_class</literal>. Hibernate comes bundled with a number of built-in ""integrations with open-source cache providers (listed below); additionally, ""you could implement your own and plug it in as outlined above. Note that ""versions prior to 3.2 defaulted to use EhCache as the default cache ""provider; that is no longer the case as of 3.2."#. Tag: title#: performance.xml:592#, no-c-formatmsgid "Cache Providers"msgstr "Cache Providers"#. Tag: entry#: performance.xml:601 performance.xml:774#, no-c-formatmsgid "Cache"msgstr "Cache"#. Tag: entry#: performance.xml:602#, no-c-formatmsgid "Provider class"msgstr "Provider class"#. Tag: entry#: performance.xml:603#, no-c-formatmsgid "Type"msgstr "Type"#. Tag: entry#: performance.xml:604#, no-c-formatmsgid "Cluster Safe"msgstr "Cluster Safe"#. Tag: entry#: performance.xml:605#, no-c-formatmsgid "Query Cache Supported"msgstr "Query Cache Supported"#. Tag: entry#: performance.xml:610 performance.xml:783#, no-c-formatmsgid "Hashtable (not intended for production use)"msgstr "Hashtable (not intended for production use)"#. Tag: literal#: performance.xml:611#, no-c-formatmsgid "org.hibernate.cache.HashtableCacheProvider"msgstr "org.hibernate.cache.HashtableCacheProvider"#. Tag: entry#: performance.xml:612#, no-c-formatmsgid "memory"msgstr "memory"#. Tag: entry#: performance.xml:614 performance.xml:621 performance.xml:628#: performance.xml:784 performance.xml:785 performance.xml:786#: performance.xml:791 performance.xml:792 performance.xml:793#: performance.xml:798 performance.xml:799 performance.xml:800#: performance.xml:805 performance.xml:806 performance.xml:812#: performance.xml:815#, no-c-formatmsgid "<entry>yes</entry>"msgstr ""#. Tag: entry#: performance.xml:617 performance.xml:790#, no-c-formatmsgid "EHCache"msgstr "EHCache"#. Tag: literal#: performance.xml:618#, no-c-formatmsgid "org.hibernate.cache.EhCacheProvider"msgstr "org.hibernate.cache.EhCacheProvider"#. Tag: entry#: performance.xml:619 performance.xml:626#, no-c-formatmsgid "memory, disk"msgstr "memory, disk"#. Tag: entry#: performance.xml:624 performance.xml:797#, no-c-formatmsgid "OSCache"msgstr "OSCache"#. Tag: literal#: performance.xml:625#, no-c-formatmsgid "org.hibernate.cache.OSCacheProvider"msgstr "org.hibernate.cache.OSCacheProvider"#. Tag: entry#: performance.xml:631 performance.xml:804#, no-c-formatmsgid "SwarmCache"msgstr "SwarmCache"#. Tag: literal#: performance.xml:632#, no-c-formatmsgid "org.hibernate.cache.SwarmCacheProvider"msgstr "org.hibernate.cache.SwarmCacheProvider"#. Tag: entry#: performance.xml:633#, no-c-formatmsgid "clustered (ip multicast)"msgstr "clustered (ip multicast)"#. Tag: entry#: performance.xml:634#, no-c-formatmsgid "yes (clustered invalidation)"msgstr "yes (clustered invalidation)"#. Tag: entry#: performance.xml:638 performance.xml:811#, no-c-formatmsgid "JBoss TreeCache"msgstr "JBoss TreeCache"#. Tag: literal#: performance.xml:639#, no-c-formatmsgid "org.hibernate.cache.TreeCacheProvider"msgstr "org.hibernate.cache.TreeCacheProvider"#. Tag: entry#: performance.xml:640#, no-c-formatmsgid "clustered (ip multicast), transactional"msgstr "clustered (ip multicast), transactional"#. Tag: entry

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -