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

📄 performance.po

📁 hibernate 开源框架的代码 jar包希望大家能喜欢
💻 PO
📖 第 1 页 / 共 5 页
字号:
msgid ""msgstr """Project-Id-Version: PACKAGE VERSION\n""Report-Msgid-Bugs-To: http://bugs.kde.org\n""POT-Creation-Date: 2007-10-25 07:47+0000\n""PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n""Last-Translator: FULL NAME <EMAIL@ADDRESS>\n""Language-Team: LANGUAGE <LL@li.org>\n""MIME-Version: 1.0\n""Content-Type: text/plain; charset=UTF-8\n""Content-Transfer-Encoding: 8bit\n"#. Tag: title#: performance.xml:5#, no-c-formatmsgid "Improving performance"msgstr "퍼포먼스 개선하기"#. Tag: title#: performance.xml:8#, no-c-formatmsgid "Fetching strategies"msgstr "페칭 방도들"#. Tag: para#: performance.xml:10#, no-c-formatmsgid """A <emphasis>fetching strategy</emphasis> is the strategy Hibernate will use ""for retrieving associated objects if the application needs to navigate the ""association. Fetch strategies may be declared in the O/R mapping metadata, ""or over-ridden by a particular HQL or <literal>Criteria</literal> query."msgstr """<emphasis>페칭 방도</emphasis>는 어플리케이션이 연관을 네비게이트할 필요가 있""을 때 Hibernate가 연관된 객체들을 검색하는데 사용하게 될 방도이다.페치 방도들""은 O/R 매핑 메타데이터 내에서 선언될 수 있거나 하나의 특정 HQL 또는 ""<literal>Criteria</literal> 질의에 의해 오버라이드 될 수도 있다."#. Tag: para#: performance.xml:17#, no-c-formatmsgid "Hibernate3 defines the following fetching strategies:"msgstr "Hibernate3는 다음 페칭 방도들을 정의한다:"#. Tag: para#: performance.xml:23#, no-c-formatmsgid """<emphasis>Join fetching</emphasis> - Hibernate retrieves the associated ""instance or collection in the same <literal>SELECT</literal>, using an ""<literal>OUTER JOIN</literal>."msgstr """<emphasis>Join 페칭</emphasis> - Hibernate는 <literal>OUTER JOIN</literal>을 ""사용하여 연관된 인스턴스 또는 동일한 <literal>SELECT</literal> 내에서 콜렉션""을 검색한다."#. Tag: para#: performance.xml:30#, no-c-formatmsgid """<emphasis>Select fetching</emphasis> - a second <literal>SELECT</literal> is ""used to retrieve the associated entity or collection. Unless you explicitly ""disable lazy fetching by specifying <literal>lazy=\"false\"</literal>, this ""second select will only be executed when you actually access the association."msgstr """<emphasis>Select 페칭</emphasis> - 두 번째 <literal>SELECT</literal>는 연과""된 엔티티 또는 콜렉션을 검색하는데 사용된다. 당신이 <literal>lazy=\"false\"</""literal>를 지정함으로써 명시적으로 lazy 페칭을 사용 불가능하게 하지 않는 한, ""이 두 번째 select는 당신이 그 연관에 실제로 액세스할 때 오직 실행될 것이다."#. Tag: para#: performance.xml:39#, no-c-formatmsgid """<emphasis>Subselect fetching</emphasis> - a second <literal>SELECT</literal> ""is used to retrieve the associated collections for all entities retrieved in ""a previous query or fetch. Unless you explicitly disable lazy fetching by ""specifying <literal>lazy=\"false\"</literal>, this second select will only ""be executed when you actually access the association."msgstr """<emphasis>Subselect 페칭</emphasis> - 두 번째 <literal>SELECT</literal>는 이""전 질의 또는 페치에서 검색된 모든 엔티티들에 대해 연관된 콜렉션들을 검색하는""데 사용된다. 당신이 <literal>lazy=\"false\"</literal>를 지정하여 명시적으로 ""lazy 페칭을 사용 불가능하게 하지 않는 한, 이 두 번째 select는 당신이 실제로 ""그 연관에 접근할 때 오직 실행될 것이다."#. Tag: para#: performance.xml:48#, no-c-formatmsgid """<emphasis>Batch fetching</emphasis> - an optimization strategy for select ""fetching - Hibernate retrieves a batch of entity instances or collections in ""a single <literal>SELECT</literal>, by specifying a list of primary keys or ""foreign keys."msgstr """<emphasis>Batch 페칭</emphasis> - select 페칭을 위한 최적화 방도 - Hibernate""는 프라이머리 키들이나 foreign 키들의 리스트를 지정함으로써 하나의""<literal>SELECT</literal> 내에서 엔티티 인스턴스들이나 콜렉션들에 대한 batch""를 검색한다."#. Tag: para#: performance.xml:57#, no-c-formatmsgid "Hibernate also distinguishes between:"msgstr "Hibernate는 또한 다음 사이를 구별 짓는다:"#. Tag: para#: performance.xml:63#, no-c-formatmsgid """<emphasis>Immediate fetching</emphasis> - an association, collection or ""attribute is fetched immediately, when the owner is loaded."msgstr """<emphasis>즉각적인 페칭</emphasis> - 소유자가 로드될 때, 연관, 콜렉션 또는 속""성이 즉시 페치된다."#. Tag: para#: performance.xml:69#, no-c-formatmsgid """<emphasis>Lazy collection fetching</emphasis> - a collection is fetched when ""the application invokes an operation upon that collection. (This is the ""default for collections.)"msgstr """<emphasis>Lazy 콜렉션 페칭</emphasis> - 어플리케이션이 그 콜렉션에 대해 하나""의 오퍼레이션을 호출할 때 콜렉션이 페치된다.(이것은 콜렉션들에 대해 디폴트이""다.)"#. Tag: para#: performance.xml:76#, no-c-formatmsgid """<emphasis>\"Extra-lazy\" collection fetching</emphasis> - individual ""elements of the collection are accessed from the database as needed. ""Hibernate tries not to fetch the whole collection into memory unless ""absolutely needed (suitable for very large collections)"msgstr """<emphasis>\"Extra-lazy\" 콜렉션 페칭</emphasis> - 콜렉션의 개별 요소들은 필요""할 때 데이터베이스로부터 접근된다. Hibernate는 절대적으로 필요하지 않은 한 전""체 콜렉션을 메모리 내로 페치하려고 시도하지 않는다(매우 큰 콜렉션에 적합함)"#. Tag: para#: performance.xml:84#, no-c-formatmsgid """<emphasis>Proxy fetching</emphasis> - a single-valued association is fetched ""when a method other than the identifier getter is invoked upon the ""associated object."msgstr """<emphasis>프락시 페칭</emphasis> - 식별자 getter가 아닌 다른 메소드가 연관된 ""객체에 대해 호출될 때 단일 값 연관이 페치된다."#. Tag: para#: performance.xml:91#, no-c-formatmsgid """<emphasis>\"No-proxy\" fetching</emphasis> - a single-valued association is ""fetched when the instance variable is accessed. Compared to proxy fetching, ""this approach is less lazy (the association is fetched even when only the ""identifier is accessed) but more transparent, since no proxy is visible to ""the application. This approach requires buildtime bytecode instrumentation ""and is rarely necessary."msgstr """<emphasis>\"No-proxy\" 페칭</emphasis> - 인스턴스 변수가 접근될 때 단일 값 연""관이 페치된다. 프락시 페칭과 비교할 때, 이 접근법은 다소 덜 lazy하지만(그 연""관은 심지어 유일하게 식별자가 접근될 때에도 페치된다)보다 투명하다. 왜냐하면 ""프락시는 어플리케이션에 가시적이지 않기 때문이다. 이 접근법은 빌드 시 바이트""코드 수단을 필요로 하며 드물게 필요하다."#. Tag: para#: performance.xml:101#, no-c-formatmsgid """<emphasis>Lazy attribute fetching</emphasis> - an attribute or single valued ""association is fetched when the instance variable is accessed. This approach ""requires buildtime bytecode instrumentation and is rarely necessary."msgstr """<emphasis>Lazy 속성 페칭</emphasis> - 인스턴스 변수가 접근될 때 속성 또는 단""일 값 연관이 페치된다 이 접근법은 빌드시 바이트코드 수단을 필요로 하며 드물""게 필요하다."#. Tag: para#: performance.xml:110#, no-c-formatmsgid """We have two orthogonal notions here: <emphasis>when</emphasis> is the ""association fetched, and <emphasis>how</emphasis> is it fetched (what SQL is ""used). Don't confuse them! We use <literal>fetch</literal> to tune ""performance. We may use <literal>lazy</literal> to define a contract for ""what data is always available in any detached instance of a particular class."msgstr """우리는 여기서 두 개의 직교하는 개념들을 갖는다: 연관이 페치될 <emphasis>때</""emphasis>, 그리고 그것이 페치되는 <emphasis>방법</emphasis>(사용되는 SQL). 그""것들을 혼동하지 말라! 우리는 퍼포먼스를 튜팅하는데 <literal>페치</literal>를 ""사용한다. 우리는 특정 클래스의 어떤 detached 인스턴스 내에서 항상 이용 가능""한 데이터가 무엇인지에 대한 계약을 정의하는데 <literal>lazy</literal>를 사용""할 수 있다."#. Tag: title#: performance.xml:119#, no-c-formatmsgid "Working with lazy associations"msgstr "lazy 연관들로 작업하기"#. Tag: para#: performance.xml:121#, no-c-formatmsgid """By default, Hibernate3 uses lazy select fetching for collections and lazy ""proxy fetching for single-valued associations. These defaults make sense for ""almost all associations in almost all applications."msgstr """디폴트로 Hibernate3는 콜렉션들에 대해 lazy select 페칭을 사용하고, 단일 값 연""관들에 대해 lazy 프락시 페칭을 사용한다. 이들 디폴트들은 거의 모든 어플리케이""션들에서 거의 모든 연관들에 대해 유의미하다."#. Tag: para#: performance.xml:127#, no-c-formatmsgid """<emphasis>Note:</emphasis> if you set <literal>hibernate.""default_batch_fetch_size</literal>, Hibernate will use the batch fetch ""optimization for lazy fetching (this optimization may also be enabled at a ""more granular level)."msgstr """<emphasis>노트:</emphasis> 만일 당신이 <literal>hibernate.""default_batch_fetch_size</literal>를 설정하는 경우, Hibernate는 lazy 페칭을 ""위한 batch 페치 최적화를 사용할 것이다(이 최적화는 또한 더 많은 과립상의 레벨""에서 이용 가능할 수 있다)."#. Tag: para#: performance.xml:134#, no-c-formatmsgid """However, lazy fetching poses one problem that you must be aware of. Access ""to a lazy association outside of the context of an open Hibernate session ""will result in an exception. For example:"msgstr """하지만, lazy 페칭은 당신이 알고 있어야 하는 한 가지 문제를 제기한다. 열려진 ""Hibernate 세션 컨텍스트 외부에서 lazy 연관에 대한 접근은 예외상황으로 귀결될 ""것이다. 예를 들면 :"#. Tag: programlisting#: performance.xml:140#, no-c-formatmsgid """<![CDATA[s = sessions.openSession();\n""Transaction tx = s.beginTransaction();\n""            \n""User u = (User) s.createQuery(\"from User u where u.name=:userName\")\n""    .setString(\"userName\", userName).uniqueResult();\n""Map permissions = u.getPermissions();\n""\n""tx.commit();\n""s.close();\n""\n""Integer accessLevel = (Integer) permissions.get(\"accounts\");  // Error!]]>"msgstr ""#. Tag: para#: performance.xml:142#, no-c-formatmsgid """Since the permissions collection was not initialized when the ""<literal>Session</literal> was closed, the collection will not be able to ""load its state. <emphasis>Hibernate does not support lazy initialization for ""detached objects</emphasis>. The fix is to move the code that reads from the ""collection to just before the transaction is committed."msgstr """<literal>Session</literal>이 닫혔을 때 permissions 콜렉션이 초기화 되지 않았""으므로, 그 콜렉션은 그것의 상태를 로드시킬 수가 없을 것이다. ""<emphasis>Hibernate 는 detached 객체들에 대한 lazy 초기화를 지원하지 않는다.""</emphasis> 정정은 콜렉션으로부터 읽어들이는 코드를 커밋 바로 직전으로 이동시""키는 것이다."#. Tag: para#: performance.xml:150#, no-c-formatmsgid """Alternatively, we could use a non-lazy collection or association, by ""specifying <literal>lazy=\"false\"</literal> for the association mapping. ""However, it is intended that lazy initialization be used for almost all ""collections and associations. If you define too many non-lazy associations ""in your object model, Hibernate will end up needing to fetch the entire ""database into memory in every transaction!"msgstr """다른 방법으로 연관 매핑에 대해 <literal>lazy=\"false\"</literal>를 지정함으로""써, non-lazy 콜렉션 또는 non-lazy 연관을 사용할 수 있다. 하지만 lazy 초기화""는 거의 모든 콜렉션들과 연관들에 대해 사용되도록 고안되어 있다. 만일 당신이 ""당신의 객체 모형 내에 너무 많은 non-lazy 연관들을 정의할 경우, Hibernate는 모""든 트랜잭션에서 전체 데이터베이스를 메모리 속으로 페치하는 필요성을 끝내게 ""될 것이다!"#. Tag: para#: performance.xml:159#, no-c-formatmsgid """On the other hand, we often want to choose join fetching (which is non-lazy ""by nature) instead of select fetching in a particular transaction. We'll now ""see how to customize the fetching strategy. In Hibernate3, the mechanisms ""for choosing a fetch strategy are identical for single-valued associations ""and collections."msgstr """다른 한편으로, 우리는 특정 트랜잭션 내에서 select 페칭 대신에 (고유하게 non-""lazy인) join 페칭을 선택하기를 자주 원한다. 우리는 이제 페칭 방도를 맞춤화 시""키는 방법을 알게 될 것이다. Hibernate3에서, 페치 방도를 선택하는 메커니즘은 ""단일 값 연관들과 콜렉션들에 대해 동일하다."#. Tag: title#: performance.xml:170#, no-c-formatmsgid "Tuning fetch strategies"msgstr "페치 방도들을 튜닝하기"#. Tag: para

⌨️ 快捷键说明

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