Closed (fixed)
Project:
Persistent URL
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Nov 2011 at 19:24 UTC
Updated:
6 Jan 2014 at 19:47 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pdrake commentedAdd index on provider, id columns for improved performance. For a PURL table with ~15,000 entries, this decreases query time from 13ms to 0.5ms for queries like the following (which occur in purl_load). A busy site may execute millions of such queries each day.
SELECT * FROM {purl} WHERE provider = ? AND id = ?Comment #2
bblake commentedLooks like this patch has already been applied to the 6.x-1.x branch. Thanks for your help.
Comment #4
dbehrman commentedModifying this patch to just create an index with the id column. In most cases the provider column would have an extremely low cardinality and this index would be more performant when the provider is not provided.