Skip to content
Snippets Groups Projects
Commit 8d7aefaf authored by Alex Barth's avatar Alex Barth
Browse files

Add index for looking up by entity_type + url/ guid to feeds_item table.

parent b4b55221
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
Feeds 7.x 2.0 xxxxxxxxxxxxxxxxxxx Feeds 7.x 2.0 xxxxxxxxxxxxxxxxxxx
--------------------------------- ---------------------------------
- Add index for looking up by entity_type + url/ guid to feeds_item table.
- #994026 tristanoneil: Optionally defuse email addresses. - #994026 tristanoneil: Optionally defuse email addresses.
Feeds 7.x 2.0 Alpha 2, 2010-11-02 Feeds 7.x 2.0 Alpha 2, 2010-11-02
......
...@@ -159,6 +159,8 @@ function feeds_schema() { ...@@ -159,6 +159,8 @@ function feeds_schema() {
'feed_nid' => array('feed_nid'), 'feed_nid' => array('feed_nid'),
'lookup_url' => array('entity_type', 'id', 'feed_nid', array('url', 255)), 'lookup_url' => array('entity_type', 'id', 'feed_nid', array('url', 255)),
'lookup_guid' => array('entity_type', 'id', 'feed_nid', array('guid', 255)), 'lookup_guid' => array('entity_type', 'id', 'feed_nid', array('guid', 255)),
'global_lookup_url' => array('entity_type', array('url', 255)),
'global_lookup_guid' => array('entity_type', array('guid', 255)),
'imported' => array('imported'), 'imported' => array('imported'),
), ),
); );
...@@ -484,3 +486,11 @@ function feeds_update_7203(&$sandbox) { ...@@ -484,3 +486,11 @@ function feeds_update_7203(&$sandbox) {
); );
db_create_table('feeds_log', $schema); db_create_table('feeds_log', $schema);
} }
/**
* Add index for looking up by entity_type + url/ guid to feeds_item table.
*/
function feeds_update_7204(&$sandbox) {
db_add_index('feeds_item', 'global_lookup_url', array('entity_type', array('url', 255)));
db_add_index('feeds_item', 'global_lookup_guid', array('entity_type', array('guid', 255)));
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment