wiki.techinc.nl/maintenance/abstractSchemaChanges/patch-objectcache-modtoken.json
Aaron Schulz 12923c1cd5 objectcache: add last-modified token field to objectcache table
Also added token and flags fields. The token field can
be used as a tie-breaker for modtime and also for faster
cas() operations. The flags field makes serialization and
compression format changes easier in the future.

Bug: T274174
Change-Id: I45731a877b21835652993c2d285165a76eeae3e9
2021-05-18 20:06:37 -07:00

63 lines
1.4 KiB
JSON

{
"comment": "Add objectcache.modtime and objectcache.token fields (T274174)",
"before": {
"name": "objectcache",
"comment": "For a few generic cache operations if not using Memcached",
"columns": [
{
"name": "keyname",
"type": "binary",
"options": { "notnull": true, "default": "", "length": 255 }
},
{
"name": "value",
"type": "blob",
"options": { "notnull": false, "length": 16777215 }
},
{
"name": "exptime",
"type": "mwtimestamp",
"options": { "notnull": true }
}
],
"indexes": [
{ "name": "exptime", "columns": [ "exptime" ], "unique": false }
],
"pk": [ "keyname" ]
},
"after": {
"name": "objectcache",
"comment": "For a few generic cache operations if not using Memcached",
"columns": [
{
"name": "keyname",
"type": "binary",
"options": { "notnull": true, "default": "", "length": 255 }
},
{
"name": "value",
"type": "blob",
"options": { "notnull": false, "length": 16777215 }
},
{
"name": "exptime",
"type": "mwtimestamp",
"options": { "notnull": true }
},
{
"name": "modtoken",
"type": "string",
"options": { "notnull": true, "length": 17, "default": "00000000000000000" }
},
{
"name": "flags",
"type": "integer",
"options": { "notnull": false, "unsigned": true, "default": null }
}
],
"indexes": [
{ "name": "exptime", "columns": [ "exptime" ], "unique": false }
],
"pk": [ "keyname" ]
}
}