debian/cubicweb-ctl.install
author Alexandre Richardson <alexandre.richardson@logilab.fr>
Tue, 12 Jan 2016 14:31:14 +0100
changeset 11169 c1eb5a676c80
parent 10559 5821ae654dfd
child 11832 e8be49ecb522
permissions -rw-r--r--
[rset] Always complete attribute/relation caches in ResultSet.get_entity RQL queries are often designed to fill up the ORM's caches when fetching entities out of the result set. Until now, if an entry already existed in the entity cache, ResultSet.get_entity would return it unchanged, not using the new ResultSet's contents to update the attribute cache, breaking expectations (if the attributes are needed, they'd then be fetched later one at a time, one entity at a time), resulting in loads of DB accesses. So we change ResultSet.get_entity so that: * if the entity is already cached and has been instantiated from the same rset, it is returned as-is (to avoid loops) * if the entity is not yet cached, it is instantiated * if the entity is cached via another rset, its attribute/relation caches are completed Closes #9942503
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9208
7ae95f48e2f0 [pkg] fix debian packaging (closes #3058542)
David Douard <david.douard@logilab.fr>
parents: 858
diff changeset
     1
usr/bin/cubicweb-ctl usr/bin/
10559
5821ae654dfd [pkg] various debian packaging fixes
Julien Cristau <julien.cristau@logilab.fr>
parents: 9208
diff changeset
     2
usr/lib/python2*/*-packages/cubicweb/cwctl.py
9208
7ae95f48e2f0 [pkg] fix debian packaging (closes #3058542)
David Douard <david.douard@logilab.fr>
parents: 858
diff changeset
     3
../cubicweb-ctl.bash_completion etc/bash_completion.d/cubicweb-ctl