sql/setup-shorturl.sql: Add index by (url, owner).
authorMark Wooding <mdw@distorted.org.uk>
Sat, 4 Jul 2015 17:02:40 +0000 (18:02 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 4 Jul 2015 17:02:40 +0000 (18:02 +0100)
commitbdae614e352884df1a95311bd669d6b918c6b7a2
tree9ac6bea8ce91893fd6e4e5be4f7a9fb344f5d8b3
parent697afe0d09f38e5e1756ebced2543ac758594d7c
sql/setup-shorturl.sql: Add index by (url, owner).

When we're trying to create a new entry, we search for an existing entry
for the same URL and a similar owner.  The index means we avoid having
to do a full scan of the table for this.
sql/setup-shorturl.sql