[Commits] act-server branch master updated.

C. Scott Ananian cscott at laptop.org
Mon Jan 12 13:29:35 EST 2009


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "/home/cscott/public_git/act-server".

The branch, master has been updated
       via  5cb309924afe9c752278af401c6cd79df21411f3 (commit)
      from  74a3817bf48a890ec5ddef4970542e13419f3cce (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

 scripts/jefferson-airplane.py |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

- Log -----------------------------------------------------------------
commit 5cb309924afe9c752278af401c6cd79df21411f3
Author: C. Scott Ananian <cscott at laptop.org>
Date:   Mon Jan 12 13:29:09 2009 -0500

    Revert "Service requests newest first to maintain responsiveness."
    
    This reverts commit 74a3817bf48a890ec5ddef4970542e13419f3cce.
    
    Database load caused by sorting on an unindexed field was too high.

diff --git a/scripts/jefferson-airplane.py b/scripts/jefferson-airplane.py
index f753f87..b261ba4 100755
--- a/scripts/jefferson-airplane.py
+++ b/scripts/jefferson-airplane.py
@@ -114,11 +114,7 @@ def main():
       fd = serial_open(SERIAL_DEVICE_FALLBACK, BAUD_RATE)
     try:
         link_up_leases() # take care of leases we already have
-        # we limit to 1000 at a bunch, and order newest first, so
-        # that we are responsive to new dev key requests even if we've
-        # got a big backlog.
-        for rl in RequestedLease.objects.filter(lease__isnull=True)\
-            .order_by('-request__req_date')[:1000]:
+        for rl in RequestedLease.objects.filter(lease__isnull=True):
             try:
                 send_one(fd, {'rlid': rl.id,
                               'sn': rl.laptop.serial_number,
-----------------------------------------------------------------------


--
/home/cscott/public_git/act-server


More information about the Commits mailing list