diff --git a/atdb/atdb/settings/base.py b/atdb/atdb/settings/base.py index ae95daa1e14932c2a91e13e6a1352acab105f1e5..31e142274c70e08f2307e10bfd435dfaf2742ed4 100644 --- a/atdb/atdb/settings/base.py +++ b/atdb/atdb/settings/base.py @@ -210,7 +210,7 @@ ACTIVE_STATUSSES = ['staging','staged','processing','processed','validated','sto STATUSSES_WITH_DATA = ['staged','fetching','fetched','processing','processed','validated','storing','stored','scrubbing','scrubbed','archiving','archived'] AGGREGATES = ['failed','active','total'] -QUERY_LIMIT_MULTI_CHANGE = 5000 +QUERY_LIMIT_MULTI_CHANGE = 10000 MAX_MONITORING_HISTORY_HOURS = 7 * 24 SERVICES_LATE_WARNING_SECONDS = 1800 diff --git a/atdb/taskdatabase/views.py b/atdb/taskdatabase/views.py index 6e395d4c170adbbaa7e114535cd9e50f0ac95b89..85f3cf553cda1e97dda609e3e7127ce921177bfe 100644 --- a/atdb/taskdatabase/views.py +++ b/atdb/taskdatabase/views.py @@ -180,15 +180,10 @@ class QueryView(SingleTableMixin, FilterView): def get_table_data(self): # https://stackoverflow.com/questions/7763115/django-passing-data-between-views - count = self.object_list.count() - - # nv4jan2024, removed the user setting for this. - # It was never used and potentially overcomplicates things elsewhere. - #try: - # limit = int(Configuration.objects.get(key='multi_change_limit').value) - #except: - # limit = settings.QUERY_LIMIT_MULTI_CHANGE + #nv:16jan2024, this would be scary, but perhaps needed + #how large is the list that can go on the session? + #query_list_of_ids = list(self.object_list.values_list('id')) query_list_of_ids = list(self.object_list.values_list('id'))[:settings.QUERY_LIMIT_MULTI_CHANGE]