Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: sitescripts/reports/utils.py

Issue 5694484511719424: Issue 1569 - Issue report digest update is inefficient (Closed)
Patch Set: Created Nov. 13, 2014, 8:14 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/reports/utils.py
===================================================================
--- a/sitescripts/reports/utils.py
+++ b/sitescripts/reports/utils.py
@@ -25,17 +25,17 @@ def getReportSubscriptions(guid):
#PFX#subscriptions ON (#PFX#sublists.list = #PFX#subscriptions.id)
WHERE report = %s''',
(guid))
rows = cursor.fetchall()
cursor.close()
return rows
def getReports(startTime):
- count = 1000
+ count = 10000
offset = 0
while True:
cursor = get_db().cursor(MySQLdb.cursors.DictCursor)
executeQuery(cursor,
'''SELECT guid, type, UNIX_TIMESTAMP(ctime) AS ctime, status, site, contact,
comment, hasscreenshot, knownissues
FROM #PFX#reports WHERE ctime >= FROM_UNIXTIME(%s) LIMIT %s OFFSET %s''',
(startTime, count, offset))
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld