Skip to content

[Feat] Track Sessions: Performance Tuning#7

Merged
PortableProgrammer merged 2 commits intomainfrom
dev
Feb 4, 2025
Merged

[Feat] Track Sessions: Performance Tuning#7
PortableProgrammer merged 2 commits intomainfrom
dev

Conversation

@PortableProgrammer
Copy link
Copy Markdown
Owner

Upon testing and feedback, Track Sessions was not very performant on slower storage (e.g. Longhorn on k3s) during write operations to the SQLite database. This PR moves much of the SQLite write logic to async operations using setTimeout(), and employs a better backoff algorithm for extra page lookups, which help greatly reduce perceived load times. Furthermore, logging is slightly improved. Finally, a CSS tweak was made to the footer-item class to force links to use the standard link color always instead of reverting to the visited color after being clicked.

Track Sessions Performance Logging in the footer:
Screenshot 2025-02-04 at 12 36 47 PM

* Converted delete and insert statements to async when possible
* Tuned SQLite queries for better performance
* Tuned extra post lookups for better performance vs. quantity
@PortableProgrammer PortableProgrammer merged commit 96c6aa5 into main Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant