10.09.2015 Views

Migrating Uber from MySQL to PostgreSQL

uber_migration_pypgday_2013

uber_migration_pypgday_2013

SHOW MORE
SHOW LESS
  • 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

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!