📄 performance.po
字号:
#. Tag: programlisting#: performance.xml:503#, no-c-formatmsgid "<![CDATA[<class name=\"Person\" batch-size=\"10\">...</class>]]>"msgstr ""#. Tag: para#: performance.xml:505#, no-c-formatmsgid """Hibernate will now execute only three queries, the pattern is 10, 10, 5."msgstr """Hibernate exécutera désormais trois requêtes, en chargeant respectivement ""10, 10, et 5 entités."#. Tag: para#: performance.xml:509#, fuzzy, no-c-formatmsgid """You may also enable batch fetching of collections. For example, if each ""<literal>Person</literal> has a lazy collection of <literal>Cat</literal>s, ""and 10 persons are currently loaded in the <literal>Session</literal>, ""iterating through all persons will generate 10 <literal>SELECT</literal>s, ""one for every call to <literal>getCats()</literal>. If you enable batch ""fetching for the <literal>cats</literal> collection in the mapping of ""<literal>Person</literal>, Hibernate can pre-fetch collections:"msgstr """Vous pouvez aussi activer le chargement par lot pour les collections. Par ""exemple, si chaque <literal>Person</literal> a une collection chargée ""tardivement de <literal>Cat</literal>s, et que 10 personnes sont ""actuellement chargées dans la <literal>Session</literal>, itérer sur toutes ""les persons générera 10 <literal>SELECT</literal>s, un pour chaque appel de ""<literal>getCats()</literal>. Si vous activez le chargement par lot pour la ""collection <literal>cats</literal> dans le mapping de <literal>Person</""literal>, Hibernate pourra précharger les collections :"#. Tag: programlisting#: performance.xml:518#, no-c-formatmsgid """<![CDATA[<class name=\"Person\">\n"" <set name=\"cats\" batch-size=\"3\">\n"" ...\n"" </set>\n""</class>]]>"msgstr ""#. Tag: para#: performance.xml:520#, 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 """Avec une taille de lot (<literal>batch-size</literal>) de 3, Hibernate ""chargera respectivement 3, 3, 3, et 1 collections en quatre <literal>SELECT</""literal>s. Encore une fois, la valeur de l'attribut dépend du nombre de ""collections non initialisées dans une <literal>Session</literal> ""particulière."#. Tag: para#: performance.xml:526#, 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 """Le chargement par lot de collections est particulièrement utile si vous avez ""des arborescenses récursives d'éléments (typiquement, le schéma facture de ""matériels). (Bien qu'un <emphasis>sous ensemble</emphasis> ou un ""<emphasis>chemin matérialisé</emphasis> est sans doute une meilleure option ""pour des arbres principalement en lecture.)"#. Tag: title#: performance.xml:535#, no-c-formatmsgid "Using subselect fetching"msgstr "Utilisation du chargement par sous select"#. Tag: para#: performance.xml:537#, 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 """Si une collection ou un proxy vers un objet doit être chargé, Hibernate va ""tous les charger en ré-exécutant la requête orignial dans un sous select. ""Cela fonctionne de la même manière que le chargement par lot sans la ""possibilité de fragmenter le chargement."#. Tag: title#: performance.xml:548#, no-c-formatmsgid "Using lazy property fetching"msgstr "Utiliser le chargement tardif des propriétés"#. Tag: para#: performance.xml:550#, 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 """Hibernate3 supporte le chargement tardif de propriétés individuelles. La ""technique d'optimisation est également connue sous le nom de <emphasis>fetch ""groups</emphasis> (groupes de chargement). Il faut noter qu'il s'agit ""principalement d'une fonctionnalité marketing car en pratique l'optimisation ""de la lecture d'un enregistrement est beaucoup plus importante que ""l'optimisation de la lecture d'une colonne. Cependant, la restriction du ""chargement à certaines colonnes peut être pratique dans des cas extrèmes, ""lorsque des tables \"legacy\" possèdent des centaines de colonnes et que le ""modèle de données ne peut pas être amélioré."#. Tag: para#: performance.xml:559#, no-c-formatmsgid """To enable lazy property loading, set the <literal>lazy</literal> attribute ""on your particular property mappings:"msgstr """Pour activer le chargement tardif d'une propriété, il faut mettre l'attribut ""<literal>lazy</literal> sur une propriété particulière du mapping :"#. Tag: programlisting#: performance.xml:564#, 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:566#, 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 """Le chargement tardif des propriétés requiert une instrumentation du bytecode ""lors de la compilation ! Si les classes persistantes ne sont pas ""instrumentées, Hibernate ignorera de manière silencieuse le mode tardif et ""retombera dans le mode de chargement immédiat."#. Tag: para#: performance.xml:572#, no-c-formatmsgid "For bytecode instrumentation, use the following Ant task:"msgstr """Pour l'instrumentation du bytecode vous pouvez utiliser la tâche Ant ""suivante :"#. Tag: programlisting#: performance.xml:576#, 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:578#, fuzzy, 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 preferred solution."msgstr """Une autre façon (meilleure ?) pour éviter de lire plus de colonnes que ""nécessaire au moins pour des transactions en lecture seule est d'utiliser ""les fonctionnalités de projection des requêtes HQL ou Criteria. Cela évite ""de devoir instrumenter le bytecode à la compilation et est certainement une ""solution préférable."#. Tag: para#: performance.xml:585#, no-c-formatmsgid """You may force the usual eager fetching of properties using <literal>fetch ""all properties</literal> in HQL."msgstr """Vous pouvez forcer le mode de chargement agressif des propriétés en ""utilisant <literal>fetch all properties</literal> dans les requêts HQL."#. Tag: title#: performance.xml:595#, no-c-formatmsgid "The Second Level Cache"msgstr "Le cache de second niveau"#. Tag: para#: performance.xml:597#, 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 """Une <literal>Session</literal> Hibernate est un cache de niveau ""transactionnel des données persistantes. Il est possible de configurer un ""cache de cluster ou de JVM (de niveau <literal>SessionFactory</literal> pour ""être exact) défini classe par classe et collection par collection. Vous ""pouvez même utiliser votr choix de cache en implémentant le pourvoyeur ""(provider) associé. Faites attention, les caches ne sont jamais avertis des ""modifications faites dans la base de données par d'autres applications (ils ""peuvent cependant être configurés pour régulièrement expirer les données en ""cache)."#. Tag: para#: performance.xml:605#, 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 """Par défaut, Hibernate utilise EHCache comme cache de niveau JVM (le support ""de JCS est désormais déprécié et sera enlevé des futures versions ""d'Hibernate). Vous pouvez choisir une autre implémentation en spécifiant le ""nom de la classe qui implémente <literal>org.hibernate.cache.CacheProvider</""literal> en utilisant la propriété <literal>hibernate.cache.provider_class</""literal>."#. Tag: title#: performance.xml:616#, no-c-formatmsgid "Cache Providers"msgstr "Fournisseur de cache"#. Tag: entry#: performance.xml:625 performance.xml:813#, no-c-formatmsgid "Cache"msgstr "Cache"#. Tag: entry#: performance.xml:626#, no-c-formatmsgid "Provider class"msgstr "Classe pourvoyeuse"#. Tag: entry#: performance.xml:627#, no-c-formatmsgid "Type"msgstr "Type"#. Tag: entry#: performance.xml:628#, no-c-formatmsgid "Cluster Safe"msgstr "Support en Cluster"#. Tag: entry#: performance.xml:629#, no-c-formatmsgid "Query Cache Supported"msgstr "Cache de requêtes supporté"#. Tag: entry#: performance.xml:634 performance.xml:822#, fuzzy, no-c-formatmsgid "Hashtable (not intended for production use)"msgstr """#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n""Hashtable (ne pas utiliser en production)\n""#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n""Hashtable (ne pas utilser en production)"#. Tag: literal#: performance.xml:635#, no-c-formatmsgid "org.hibernate.cache.HashtableCacheProvider"msgstr "org.hibernate.cache.HashtableCacheProvider"#. Tag: entry#: performance.xml:636#, no-c-formatmsgid "memory"msgstr "mémoire"#. Tag: entry#: performance.xml:638 performance.xml:645 performance.xml:652#: performance.xml:823 performance.xml:824 performance.xml:825#: performance.xml:830 performance.xml:831 performance.xml:832#: performance.xml:837 performance.xml:838 performance.xml:839#: performance.xml:844 performance.xml:845 performance.xml:851#: performance.xml:854 performance.xml:858 performance.xml:861#, no-c-formatmsgid "<entry>yes</entry>"msgstr ""#. Tag: entry#: performance.xml:641 performance.xml:829#, no-c-format
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -