Migrating Uber from MySQL to PostgreSQL
uber_migration_pypgday_2013
uber_migration_pypgday_2013
- No tags were found...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Code Changes<br />
Implicit Ordering (cont.)<br />
Index details aside, the problem related <strong>to</strong> Python code<br />
was pages that implicitly relied on clustering on the PK<br />
in <strong>MySQL</strong>.<br />
Usually the code is trying <strong>to</strong> get thing in order <strong>from</strong><br />
oldest <strong>to</strong> newest (e.g. code paginating some results),<br />
and the au<strong>to</strong>-increment PK is an indirect proxy for that<br />
behavior.<br />
Evan Klitzke (<strong>Uber</strong>, Inc.) <strong>Migrating</strong> <strong>Uber</strong> <strong>from</strong> <strong>MySQL</strong> <strong>to</strong> <strong>PostgreSQL</strong> March 13, 2013 44 / 59