<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Fri May 24 02:53:54 UTC 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://www.doctrine-project.org/jira/si/jira.issueviews:issue-xml/DDC-577/DDC-577.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Doctrine Project</title>
    <link>http://www.doctrine-project.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>5.2.7</version>
        <build-number>850</build-number>
        <build-date>21-02-2013</build-date>
    </build-info>

<item>
            <title>[DDC-577] Change default allocationSize from 10 to 1</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-577</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I propose to change the default value of  allocationSize for sequence columns from current 10 to 1. It&apos;s defined in  $definition&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;allocationSize&amp;#39;&amp;#93;&lt;/span&gt;  in Doctrine/ORM/Mapping/ClassMetaFactory.php.&lt;/p&gt;

&lt;p&gt;The improvement request is based on detailed discussion on &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-569?focusedCommentId=12855&amp;amp;page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12855&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-569?focusedCommentId=12855&amp;amp;page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12855&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Current default value for allocationSize=10 is CONFUSING and I am sure it will cause problems and misunderstoods for many people in future.&lt;/p&gt;

&lt;p&gt;The core of the problem is that lot of people define table structure manually, separately from entity annotations. And while the default allocationSize is 10, they have to remember (and they have to know they should remember) each time they write new table and new entity, that:&lt;/p&gt;

&lt;p&gt;a) They have to define each the sequence in database manually with INCREMENT BY 10&lt;br/&gt;
b) OR they have to define in each entity manually the annotation for @SequenceGenerator - allocationSize=1&lt;br/&gt;
c) OR they have to manually use strategy=&quot;IDENTITY&quot;, but it&apos;s primarily related to primary keys, not to all sequences at general.&lt;/p&gt;

&lt;p&gt;Shortly, in an intuitive way everybody assumes the behaviour as allocationSize would be 1. Current default value 10 is not in accord with this intuitive perception and will cause many questions and misunderstoods.&lt;/p&gt;

&lt;p&gt;The &quot;preloading&quot; of 10 values at once is a kind of &quot;advanced optimalization&quot; - it&apos;s great it is available and implemented - but it should not be applied automatically, but only after explicit setup.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11332">DDC-577</key>
            <summary>Change default allocationSize from 10 to 1</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="jantichy">Jan Tich&#253;</reporter>
                        <labels>
                    </labels>
                <created>Fri, 7 May 2010 08:34:41 +0000</created>
                <updated>Thu, 12 Aug 2010 00:09:19 +0000</updated>
                    <resolved>Sun, 13 Jun 2010 14:12:58 +0000</resolved>
                            <version>2.0-BETA1</version>
                                <fixVersion>2.0-BETA3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="13106" author="romanb" created="Sat, 5 Jun 2010 07:03:16 +0000"  >&lt;p&gt;This should be changed for BETA3.&lt;/p&gt;</comment>
                    <comment id="13299" author="beberlei" created="Sun, 13 Jun 2010 14:12:58 +0000"  >&lt;p&gt;Fixed and scheduled for 2.0 BETA 3&lt;/p&gt;</comment>
                    <comment id="13925" author="guilhermeblanco" created="Thu, 12 Aug 2010 00:09:19 +0000"  >&lt;p&gt;Actually patch was only committed now.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://github.com/doctrine/doctrine2/commit/5719f8523bbb3c8a6fd11c749e5317b238d3d2b3&quot; class=&quot;external-link&quot;&gt;http://github.com/doctrine/doctrine2/commit/5719f8523bbb3c8a6fd11c749e5317b238d3d2b3&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>