Chart updates should be batched #253

Open
opened 2022-11-26 12:18:16 +00:00 by toast · 1 comment
Owner

Current code is:

for (const chart of charts) {
	chart.save();
}

in a setInterval.

Current code is: ```js for (const chart of charts) { chart.save(); } ``` in a setInterval.
Contributor

tried to reanable charts to see how they behave with the web-workers. it doesn't lock up fe, which is good. but it still locks up delivery queue, while its gathering data.

question: what will happen, when i reanable it again in the code? i tried today, but it did spike my cpu for an hour (until i disabled it again and restarted the instance, because it clogged up my delivery queue), so could it be, that foundkey is trying to fetch all past missing datapoints or something?

tried to reanable charts to see how they behave with the web-workers. it doesn't lock up fe, which is good. but it still locks up delivery queue, while its gathering data. question: what will happen, when i reanable it again in the code? i tried today, but it did spike my cpu for an hour (until i disabled it again and restarted the instance, because it clogged up my delivery queue), so could it be, that foundkey is trying to fetch all past missing datapoints or something?
Sign in to join this conversation.
No Label
feature
fix
upkeep
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: FoundKeyGang/FoundKey#253
No description provided.