debian/cubicweb-ctl.install.in
author Alexandre Fayolle <alexandre.fayolle@logilab.fr>
Thu, 21 Apr 2011 16:33:55 +0200
branchstable
changeset 7341 c419c2d0d13e
parent 858 e6ae125d5903
child 9208 7ae95f48e2f0
permissions -rw-r--r--
add a new method iter_process_result which does the same as proces_result but is a generator (closes #1625374) process_result is reimplemented using the new method, and the two helper methods are turned into generators. These generators use cursor.fetchmany instead of cursor.fetchall after setting cursor.arraysize to 100. This means that the whole result set should never loaded in memory when using the iter_process_result method. This is used in the "portable" database dump implementation when we typically to 'SELECT * FROM table', but could probably be used too in other parts of cubicweb.

debian/tmp/usr/bin/cubicweb-ctl usr/bin/
debian/tmp/usr/lib/PY_VERSION/site-packages/cubicweb/cwctl.py usr/lib/PY_VERSION/site-packages/cubicweb
debian/cubicweb-ctl.bash_completion etc/bash_completion.d/cubicweb-ctl