aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2023-01-24 19:19:09 +1100
committerTerry Truong <terry06890@gmail.com>2023-01-24 19:33:27 +1100
commit0f74c8bad0b176f808cdf53911f70d5d791823fe (patch)
tree7a26927e76192a0b7f4a83e5f596b5666ab352cd
parentf6fb429772c02da976f4173907fdaa9ee97a7c99 (diff)
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.
-rwxr-xr-xbackend/chrona.py2
-rw-r--r--src/App.vue2
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 ==========