From 0f74c8bad0b176f808cdf53911f70d5d791823fe Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Tue, 24 Jan 2023 19:19:09 +1100 Subject: Adjust limits and timeouts Increase MAX_REQ_EVENTS in chrona.py. Without this, a large-screened client might request with a limit of 700 events, more than the previous server limit of 500, causing the client to display nothing. Reduce onEventDisplay() throttling timeout in App.vue, for faster user responsiveness. --- backend/chrona.py | 2 +- src/App.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/chrona.py b/backend/chrona.py index cd9a0be..e107d1c 100755 --- a/backend/chrona.py +++ b/backend/chrona.py @@ -33,7 +33,7 @@ import jsonpickle from hist_data.cal import HistDate, dbDateToHistDate, dateToUnit DB_FILE = 'hist_data/data.db' -MAX_REQ_EVENTS = 500 +MAX_REQ_EVENTS = 2000 MAX_REQ_UNIT_COUNTS = MAX_REQ_EVENTS DEFAULT_REQ_EVENTS = 20 MAX_REQ_SUGGS = 50 diff --git a/src/App.vue b/src/App.vue index 4a8c3d9..186bf40 100644 --- a/src/App.vue +++ b/src/App.vue @@ -370,7 +370,7 @@ function onEventDisplay( timelineTimeouts.set(timelineId, window.setTimeout(async () => { timelineTimeouts.delete(timelineId); handleOnEventDisplay(timelineId, eventIds, firstDate, lastDate, scaleIdx); - }, 200)); + }, 100)); } // ========== For info modal ========== -- cgit v1.2.3