Download & Extend

_feedapi_node_save performance: Skip node object creation when there are duplicates

Project:FeedAPI
Version:6.x-1.x-dev
Component:Code feedapi_node
Category:task
Priority:normal
Assigned:Unassigned
Status:closed (fixed)
Issue tags:Performance

Issue Summary

This patch changes _feedapi_node_save (by moving the x_dupe code higher) so that it checks the existence of duplicates before creating a new node object. And also FALSE is returned to indicate that the item is updated when there are duplicates.

Comments

#1

patch

AttachmentSize
feedapi_node.x_dupe.patch 1.92 KB

#2

Status:needs review» reviewed & tested by the community

It does make sense.
I tested it with simpletest tests of FeedAPI and FeedAPI Mapper and it won't hurt :)
Also I tested it manually and it does not break the cross-feed deduping feature.

#3

Status:reviewed & tested by the community» fixed

Committed. Thank you!

#4

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.