Closed (fixed)
Project:
FeedAPI
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 Nov 2007 at 22:38 UTC
Updated:
27 Nov 2007 at 21:55 UTC
Jump to comment: Most recent file
Change from primary (fiid, nid) to primary(nid), index(fiid), index (feed_nid) but also index(url) and index(guid) - as there are performance sensitive searches by those fields in 2 places in feedapi_node.module.
I also removed the auto-increment
Fiid is incremented correctly by db_next_id() now.
I am not sure wether we need fiid column at all.
Needs to be tested with PostgreSQL MySQL 5 and MySQL 4.1.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | feedapi_node_fix_index.patch | 4.74 KB | alex_b |
| feedapi_node_fix_index.patch | 4.58 KB | alex_b |
Comments
Comment #1
alex_b commentedUpdated patch: remove feedapi_node_item_fiid entry in sequences table before inserting it. Avoids errors in case a user doesn't update right away.
On a general note, in regards to testing this patch:
I am particularly worried about
as I don't know wether this query will work on PostgreSQL and MySQL < 5.
Comment #2
aron novakI extended it with postgtesql-equivalent statements. If there are any postgresql users, please test these new indeces against performance. I also created the table and tried out the update statements w/ Mysql 4.7. (Mysql 5 is already the default at my dev environment)
Comment #3
alex_b commentedrock on!
Comment #4
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.