Create dedicated toke collection. #187

Closed
opened 2025-10-12 19:13:44 -04:00 by rainbownapkin · 1 comment

Stat profile is getting quite heavy to pull with legacy data loaded into the tokes sub-collection.

We should move them into their own collection, and use the data to build a live RAM-backed toke command counter map, as well as a total toke counter.

Tokes tattoo'd to the DB should auto-magically update the RAM backed map/counter.

This will make both the stats profile quicker to load, and toke statistics nearly instant.

Stat profile is getting quite heavy to pull with legacy data loaded into the tokes sub-collection. We should move them into their own collection, and use the data to build a live RAM-backed toke command counter map, as well as a total toke counter. Tokes tattoo'd to the DB should auto-magically update the RAM backed map/counter. This will make both the stats profile quicker to load, and toke statistics nearly instant.
rainbownapkin added this to the Canopy v0.4-Indev milestone 2025-10-12 19:13:50 -04:00
rainbownapkin added the
Performance Improvement
UX/Accessibility
Cleanup/Refactor
labels 2025-10-12 20:34:57 -04:00
rainbownapkin added a new dependency 2025-10-12 20:35:25 -04:00
Author
Owner

Moved toke log to it's own DB collection w/ cached statistics. Tokebot statistics page-load time decreased by up to 20-30x: a1b602efdb

Moved toke log to it's own DB collection w/ cached statistics. Tokebot statistics page-load time decreased by up to 20-30x: a1b602efdb
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Blocks
#164 Tweaks and Fixes
rainbownapkin/canopy
Reference: rainbownapkin/canopy#187
No description provided.