Roundup Tracker - Issues

Issue 2550501

classification
Optimize Multilink additions in rdbms_common
Type: resource usage Severity: normal
Components: Web interface Versions: devel
process
Status: closed fixed
:
: stefan : richard, stefan
Priority: : patch, patch

Created on 2009-02-09 17:29 by stefan, last changed 2009-02-12 05:07 by stefan.

Files
File name Uploaded Description Edit Remove
rdbms_common.py.diff stefan, 2009-02-09 17:29
Messages
msg3528 Author: [hidden] (stefan) Date: 2009-02-09 17:29
The attached patch optimizes

 cl.set(nodeid, multilink = nodes)

such that the 'hasnode' validation is only done on new nodes in the
'multilink' property. (I.e. it is assumed that nodes already in the
previous multilink value were already checked.)

Also, 'hasnode' only does an SQL query in case of a cache miss, to
reduce the number of SQL queries to be done.
msg3533 Author: [hidden] (richard) Date: 2009-02-12 01:48
Looks good to me.
msg3538 Author: [hidden] (stefan) Date: 2009-02-12 05:07
Fixed with rev:4122
History
Date User Action Args
2009-02-12 05:07:40stefansetstatus: new -> closed
resolution: fixed
messages: + msg3538
keywords: patch, patch
2009-02-12 01:48:12richardsetkeywords: patch, patch
messages: + msg3533
2009-02-09 17:29:03stefancreate