)]}'
{
  "commit": "739c4b78800c710b37db4c67157d0f121e3e1328",
  "tree": "c46c0778dd6657e290df2f70651fdeb143071f4c",
  "parents": [
    "6211a894e9f363fb3f9cc48cb031e4d467de6806"
  ],
  "author": {
    "name": "Saša Živkov",
    "email": "sasa.zivkov@sap.com",
    "time": "Fri Oct 24 16:43:01 2014 +0200"
  },
  "committer": {
    "name": "Saša Živkov",
    "email": "sasa.zivkov@sap.com",
    "time": "Mon Nov 03 09:50:10 2014 +0100"
  },
  "message": "Order the primary key columns by the @Column.id()\n\nSince 1.6 we created compound primary key indexes ordered by\ndepth-first traversal of the primary key using the alphabetical order\nof fields. This created many compound primary key indexes with a\nwrong column order which lead to poor performance in some Gerrit\ndatabase queries which relied on using a prefix of the primary key\nindex columns.\n\nUp to and including 1.4 we use the depth first traversal of the\nprimary key, using field declaration order. This worked well with\nJava 6 but had to be fixed when switching to Java 7 and a new ordering\nwas imposed (between 1.4 and 1.6).\n\nTo fix the issue of the column order order the primary key fields\nby:\n- depth first traversal\n- @Column annotated fields before non-annotated\n- @Column annotated fields ordered by the @Column.id()\n- non-annotated fields ordered alphabetically\n\nChange-Id: Icd5a644587c6af442172797e0a52a7eea4512e79\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "6b7680b001b3fe1e8019ed1608bbdcd8174d06c0",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/gwtorm/schema/java/JavaColumnModel.java",
      "new_id": "683e5a54a520e3ef4d3bd4fe35adb27a08507fd6",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/gwtorm/schema/java/JavaColumnModel.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "adae52b57b5696e80965a3898c1b61007c67e1f4",
      "new_mode": 33188,
      "new_path": "src/test/java/com/google/gwtorm/schema/java/DeclaredFieldsOrderTest.java"
    }
  ]
}
