<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.hljs-number
        {mso-style-name:hljs-number;}
span.hljs-keyword
        {mso-style-name:hljs-keyword;}
span.EmailStyle23
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-AU link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>Liz ftw<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>David Cook<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Systems Librarian<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Prosentient Systems<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>72/330 Wattle St<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Ultimo, NSW 2007<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Australia<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Office: 02 9212 0899<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Direct: 02 8005 0595<o:p></o:p></span></p></div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext'>From:</span></b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext'> koha-devel-bounces@lists.koha-community.org [mailto:koha-devel-bounces@lists.koha-community.org] <b>On Behalf Of </b>Liz Rea<br><b>Sent:</b> Tuesday, 27 March 2018 11:39 AM<br><b>To:</b> koha-devel@lists.koha-community.org<br><b>Subject:</b> [Koha-devel] MariaDB and Auto Increment - it's the good news<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p>I was quite nosing around looking for something else, and came across this:<o:p></o:p></p><pre id=pre><code id=ciphertext>> Until MariaDB </code><span class=hljs-number>10.2.3</span><code>, InnoDB </code><span class=hljs-keyword>and</span><code> XtraDB used an auto-increment counter that </code><span class=hljs-keyword>is</span><code> stored </code><span class=hljs-keyword>in</span><code> memory. When the server restarts, the counter </code><span class=hljs-keyword>is</span><code> re-initialized to the highest value used </code><span class=hljs-keyword>in</span><code> the table, which cancels the effects </code><span class=hljs-keyword>of</span><code> any AUTO_INCREMENT = N option </code><span class=hljs-keyword>in</span><code> the table statements.<o:p></o:p></code></pre><pre><code><o:p> </o:p></code></pre><p>Of course. We knew that. What we didn't know, possibly, was the following:<o:p></o:p></p><pre id=pre><code id=ciphertext><o:p> </o:p></code></pre><pre><code id=ciphertext>>  From MariaDB </code><span class=hljs-number>10.2.4</span><code>, </code><span class=hljs-keyword>this</span><code> restriction has been lifted </code><span class=hljs-keyword>and</span><code> AUTO_INCREMENT </code><span class=hljs-keyword>is</span><code> persistent.</code><o:p></o:p></pre><p class=MsoNormal><o:p> </o:p></p><p>Note that this isn't the current package version of mariadb-server for Debian 9, it's lagging behind a bit at 10.1.26. However, the days of auto increment issues, at least for MariaDB, may soon be coming to a close.<o:p></o:p></p><p>Information from: <a href="https://mariadb.com/kb/en/library/auto_increment/">https://mariadb.com/kb/en/library/auto_increment/</a><o:p></o:p></p><p><o:p> </o:p></p><p class=MsoNormal>-- <o:p></o:p></p><pre>Liz Rea<o:p></o:p></pre><pre>Catalyst.Net Limited<o:p></o:p></pre><pre>Level 6, Catalyst House, <o:p></o:p></pre><pre>150 Willis Street, Wellington.<o:p></o:p></pre><pre>P.O Box 11053, Manners Street, <o:p></o:p></pre><pre>Wellington 6142<o:p></o:p></pre><pre>04 803 2265<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>GPG: B149 A443 6B01 7386 C2C7 F481 B6c2 A49D 3726 38B7<o:p></o:p></pre></div></body></html>