Issue 5817

Title
Replace fetchall by iteration
Priority
feature
Status
resolved
Nosy list
ced, reviewbot, roundup-bot
Assigned to
ced
Keywords
easy, review

Created on 2016-08-22.18:32:01 by ced, last changed 1 month ago by roundup-bot.

Messages

New changeset e0e9bff953ca by Cédric Krier in branch 'default':
Replace cursor fetchall by iteration over cursor
https://hg.tryton.org/tryton-env/rev/e0e9bff953ca
New changeset 130d98839af1 by Cédric Krier in branch 'default':
Replace cursor fetchall by iteration over cursor
https://hg.tryton.org/trytond/rev/130d98839af1
New changeset 0dfd9ab91045 by Cédric Krier in branch 'default':
Replace cursor fetchall by iteration over cursor
https://hg.tryton.org/modules/web_shortener/rev/0dfd9ab91045
New changeset 089a4aeb7c89 by Cédric Krier in branch 'default':
Replace cursor fetchall by iteration over cursor
https://hg.tryton.org/modules/timesheet_cost/rev/089a4aeb7c89
New changeset d5bd5090b474 by Cédric Krier in branch 'default':
Replace cursor fetchall by iteration over cursor
https://hg.tryton.org/modules/timesheet/rev/d5bd5090b474
New changeset 098d44db530e by Cédric Krier in branch 'default':
Replace cursor fetchall by iteration over cursor
https://hg.tryton.org/modules/stock_forecast/rev/098d44db530e
New changeset 84dc1a0ab574 by Cédric Krier in branch 'default':
Replace cursor fetchall by iteration over cursor
https://hg.tryton.org/modules/stock/rev/84dc1a0ab574
New changeset 624ad590a7cf by Cédric Krier in branch 'default':
Replace cursor fetchall by iteration over cursor
https://hg.tryton.org/modules/sale_promotion_coupon/rev/624ad590a7cf
New changeset 4cbadd5f1466 by Cédric Krier in branch 'default':
Replace cursor fetchall by iteration over cursor
https://hg.tryton.org/modules/sale_opportunity/rev/4cbadd5f1466
New changeset 09b8cbde96ac by Cédric Krier in branch 'default':
Replace cursor fetchall by iteration over cursor
https://hg.tryton.org/modules/sale_extra/rev/09b8cbde96ac
New changeset 81aca820f1d0 by Cédric Krier in branch 'default':
Replace cursor fetchall by iteration over cursor
https://hg.tryton.org/modules/sale/rev/81aca820f1d0
New changeset 49aa55971c23 by Cédric Krier in branch 'default':
Replace cursor fetchall by iteration over cursor
https://hg.tryton.org/modules/purchase/rev/49aa55971c23
New changeset 45199a288fba by Cédric Krier in branch 'default':
Replace cursor fetchall by iteration over cursor
https://hg.tryton.org/modules/project_revenue/rev/45199a288fba
New changeset d84bce053fd2 by Cédric Krier in branch 'default':
Replace cursor fetchall by iteration over cursor
https://hg.tryton.org/modules/project_invoice/rev/d84bce053fd2
New changeset 20ebbd9e622b by Cédric Krier in branch 'default':
Replace cursor fetchall by iteration over cursor
https://hg.tryton.org/modules/project/rev/20ebbd9e622b
New changeset 508fd56d0ae5 by Cédric Krier in branch 'default':
Replace cursor fetchall by iteration over cursor
https://hg.tryton.org/modules/party/rev/508fd56d0ae5
New changeset 877a827c069c by Cédric Krier in branch 'default':
Replace cursor fetchall by iteration over cursor
https://hg.tryton.org/modules/marketing_automation/rev/877a827c069c
New changeset 95c963bbe219 by Cédric Krier in branch 'default':
Replace cursor fetchall by iteration over cursor
https://hg.tryton.org/modules/currency/rev/95c963bbe219
New changeset 945ba1baf73e by Cédric Krier in branch 'default':
Replace cursor fetchall by iteration over cursor
https://hg.tryton.org/modules/commission/rev/945ba1baf73e
New changeset 13e879e38c1c by Cédric Krier in branch 'default':
Replace cursor fetchall by iteration over cursor
https://hg.tryton.org/modules/analytic_account/rev/13e879e38c1c
New changeset 4fa6fd2e3dda by Cédric Krier in branch 'default':
Replace cursor fetchall by iteration over cursor
https://hg.tryton.org/modules/account_statement/rev/4fa6fd2e3dda
New changeset 13c9be5bfcaf by Cédric Krier in branch 'default':
Replace cursor fetchall by iteration over cursor
https://hg.tryton.org/modules/account_payment_sepa/rev/13c9be5bfcaf
New changeset ea055cc5009b by Cédric Krier in branch 'default':
Replace cursor fetchall by iteration over cursor
https://hg.tryton.org/modules/account_invoice/rev/ea055cc5009b
New changeset cce84836da4f by Cédric Krier in branch 'default':
Replace cursor fetchall by iteration over cursor
https://hg.tryton.org/modules/account_dunning/rev/cce84836da4f
New changeset 8c2c281a6531 by Cédric Krier in branch 'default':
Replace cursor fetchall by iteration over cursor
https://hg.tryton.org/modules/account_deposit/rev/8c2c281a6531
New changeset 25fa27914f88 by Cédric Krier in branch 'default':
Replace cursor fetchall by iteration over cursor
https://hg.tryton.org/modules/account/rev/25fa27914f88
Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2016-08-22.18:32:00
In issue4949, one of the goal of the change was to replace .fetchall by iteration over the cursor.
Indeed for psycopg2, it will only safe the list creation in memory because psycopg2 fetchall the data any way (except if we use named cursor).
Any way, it is still good to iterate over the cursor instead of .fetchall if the resulted list is never stored.
History
Date User Action Args
2021-03-21 16:11:24roundup-botsetmessages: + msg65753
2021-03-21 16:11:21roundup-botsetmessages: + msg65752
2021-03-21 16:11:14roundup-botsetmessages: + msg65751
2021-03-21 16:11:08roundup-botsetmessages: + msg65750
2021-03-21 16:11:00roundup-botsetmessages: + msg65749
2021-03-21 16:10:53roundup-botsetmessages: + msg65748
2021-03-21 16:10:49roundup-botsetmessages: + msg65747
2021-03-21 16:10:43roundup-botsetmessages: + msg65746
2021-03-21 16:10:34roundup-botsetmessages: + msg65745
2021-03-21 16:10:26roundup-botsetmessages: + msg65744

Showing 10 items. Show all history (warning: this could be VERY long)