<table><tr><td style="">dvratil created this revision.<br />dvratil added a reviewer: KDE PIM.<br />Herald added a project: KDE PIM.<br />Herald added a subscriber: kde-pim.<br />dvratil requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D21714">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Some DAV servers produce exteremely long RIDs that do not fit into the<br />
current 255 character limit. This is only problem on MySQL, on other<br />
DBs we use TEXT, which has no length limit.</p>

<p>On MySQL, just increasing the column length to 1024 is not enough,<br />
there's a limit on maximum length of VARBINARY/VARCHAR index, which is<br />
756 bytes (255 characters). To be able to have an index on a VARBINARY<br />
column with up to 1024 characters we need to enable innodb_large_prefix<br />
and change how the extra characters are stored on the disk (ROW_FORMAT).</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Modified a unit-test to attempt creating an Item with 1024 characters long RID</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R165 Akonadi </div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D21714">https://phabricator.kde.org/D21714</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/libs/itemappendtest.cpp<br />
src/server/storage/akonadidb.xml<br />
src/server/storage/dbinitializer_p.cpp<br />
src/server/storage/dbupdate.xml<br />
src/server/storage/mysql-global-mobile.conf</div></div></div><br /><div><strong>To: </strong>dvratil, KDE PIM<br /><strong>Cc: </strong>kde-pim, dvasin, rodsevich, winterz, vkrause, mlaurent, knauss, dvratil<br /></div>