Changeset d53aea in indico


Ignore:
Timestamp:
08/23/11 15:38:55 (22 months ago)
Author:
Jose Benito <jose.benito.gonzalez@…>
Branches:
master, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b2, v0.99, b8c30da8ebdbdcbd675a873997cc3e95f567de49, 4287315ec967a3da168d83963c14001db8487d53
Children:
8eb3fa
Parents:
485973
git-author:
Adrian Moennich <jerome.ernst.monnich@…> (06/20/11 16:30:57)
git-committer:
Jose Benito <jose.benito.gonzalez@…> (08/23/11 15:38:55)
Message:

[MIN] Use a hard limit of 1k instead of 10k events

  • exporting from the prod db takes about 1s/100 events
  • people can still use the offset if they need more
File:
1 edited

Legend:

Unmodified
Added
Removed
  • indico/web/http_api/export.py

    r9da55e rd53aea  
    144144        except pytz.UnknownTimeZoneError, e: 
    145145            raise HTTPAPIError("Bad timezone: '%s'" % e.message, apache.HTTP_BAD_REQUEST) 
    146         max = self.MAX_RECORDS.get(self._detail, 10000) 
     146        max = self.MAX_RECORDS.get(self._detail, 1000) 
    147147        self._userLimit = get_query_parameter(self._qdata, ['n', 'limit'], 0, integer=True) 
    148148        if self._userLimit > max: 
     
    354354    DEFAULT_DETAIL = 'events' 
    355355    MAX_RECORDS = { 
    356         'events': 10000, 
     356        'events': 1000, 
    357357        'contributions': 500, 
    358358        'subcontributions': 500, 
Note: See TracChangeset for help on using the changeset viewer.