-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replay DB and Global Stats #364
Draft
alvarosevilla95
wants to merge
39
commits into
project-slippi:main
Choose a base branch
from
alvarosevilla95:rewrite/db
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Commits on May 31, 2021
-
Persist replay stats data to sqlite for faster access (project-slippi…
…#126) * chore(vscode): use LF for new lines by default * Persist replay stats data to NeDB for faster access * Upgrade electron to 11.3.0 The NeDB library required optional chaining which is not supported in the current version * Set DB location in userData * Support for folders and file changes in the db * Compute stats in the main process * Downgrade Electron Apparently Electron sucks a lot and the new version breaks the sourcegraph. Had to switch nedb-promises-typescript to @types/nedb due to lack of optional chaining support in the current version. * Delete from DB files from deleted folders * Add player tags to top level for easy querying * optimize file detection * Lazy load stats from the db * Switch from NeDB to sqlite3 * Improve querying * Use worker_threads to parallelize stats computing * Restructure replay code * Separate server, db, and stats parser * Style fixes * Move replay code back to replayBrowser * Fix wiring * Restructure folder loading * Change db name to 'sqlippi.db' Co-authored-by: Vince Au <[email protected]> * Move @types/sqlite3 to dev dependency * Rename dao.ts to db.ts * Style fixes * Add worker pool for bulk stats loading * Consolidate ipc logic * Separate db into two tables * Move startTime to replay_data * Initial db schema draft * Remove schemaa file * Swap node-sqlite with better-sqlite3 * Move db to worker thread * Add better-sqlite3 to thread-plugins bundled modules * Pass userdata path to the db from main thread * Typo in log * Remove old stats worker * Discard better-sqlite3 * Revert "Discard better-sqlite3" This reverts commit 1aaa051. * fix: type issues * fix: better-sqlite3 rebuilding Co-authored-by: Vince Au <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 84c566a - Browse repository at this point
Copy the full SHA 84c566aView commit details -
Configuration menu - View commit details
-
Copy full SHA for a50f8d3 - Browse repository at this point
Copy the full SHA a50f8d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 87d62c6 - Browse repository at this point
Copy the full SHA 87d62c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for fe83520 - Browse repository at this point
Copy the full SHA fe83520View commit details -
Configuration menu - View commit details
-
Copy full SHA for 58d620a - Browse repository at this point
Copy the full SHA 58d620aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 759810c - Browse repository at this point
Copy the full SHA 759810cView commit details -
Configuration menu - View commit details
-
Copy full SHA for dc1acc3 - Browse repository at this point
Copy the full SHA dc1acc3View commit details
Commits on May 29, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 74646d5 - Browse repository at this point
Copy the full SHA 74646d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for d176cc6 - Browse repository at this point
Copy the full SHA d176cc6View commit details -
Configuration menu - View commit details
-
Copy full SHA for a122cd1 - Browse repository at this point
Copy the full SHA a122cd1View commit details -
Configuration menu - View commit details
-
Copy full SHA for cc8006f - Browse repository at this point
Copy the full SHA cc8006fView commit details -
Configuration menu - View commit details
-
Copy full SHA for bc6314c - Browse repository at this point
Copy the full SHA bc6314cView commit details
Commits on Jun 25, 2022
-
Configuration menu - View commit details
-
Copy full SHA for fa1f95b - Browse repository at this point
Copy the full SHA fa1f95bView commit details -
Configuration menu - View commit details
-
Copy full SHA for d0179b7 - Browse repository at this point
Copy the full SHA d0179b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac2e48c - Browse repository at this point
Copy the full SHA ac2e48cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5256648 - Browse repository at this point
Copy the full SHA 5256648View commit details -
Configuration menu - View commit details
-
Copy full SHA for 080e0ea - Browse repository at this point
Copy the full SHA 080e0eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 84ac953 - Browse repository at this point
Copy the full SHA 84ac953View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6fc10e2 - Browse repository at this point
Copy the full SHA 6fc10e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1cf28f6 - Browse repository at this point
Copy the full SHA 1cf28f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for e36136c - Browse repository at this point
Copy the full SHA e36136cView commit details -
Configuration menu - View commit details
-
Copy full SHA for e4920d2 - Browse repository at this point
Copy the full SHA e4920d2View commit details
Commits on Oct 17, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 02401e5 - Browse repository at this point
Copy the full SHA 02401e5View commit details
Commits on Dec 14, 2022
-
Configuration menu - View commit details
-
Copy full SHA for b1972d8 - Browse repository at this point
Copy the full SHA b1972d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f3a984 - Browse repository at this point
Copy the full SHA 8f3a984View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ef8f65 - Browse repository at this point
Copy the full SHA 8ef8f65View commit details -
Configuration menu - View commit details
-
Copy full SHA for e64714d - Browse repository at this point
Copy the full SHA e64714dView commit details
Commits on Dec 15, 2022
-
Configuration menu - View commit details
-
Copy full SHA for d6bb31f - Browse repository at this point
Copy the full SHA d6bb31fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6771ed9 - Browse repository at this point
Copy the full SHA 6771ed9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 896cbb3 - Browse repository at this point
Copy the full SHA 896cbb3View commit details
Commits on Dec 16, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 894254d - Browse repository at this point
Copy the full SHA 894254dView commit details -
Configuration menu - View commit details
-
Copy full SHA for eb2e388 - Browse repository at this point
Copy the full SHA eb2e388View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6bde45e - Browse repository at this point
Copy the full SHA 6bde45eView commit details -
Configuration menu - View commit details
-
Copy full SHA for a61faaa - Browse repository at this point
Copy the full SHA a61faaaView commit details -
Configuration menu - View commit details
-
Copy full SHA for deb0237 - Browse repository at this point
Copy the full SHA deb0237View commit details
Commits on Dec 20, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 24bdacb - Browse repository at this point
Copy the full SHA 24bdacbView commit details
Commits on Dec 25, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 5eec869 - Browse repository at this point
Copy the full SHA 5eec869View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f7f1c7 - Browse repository at this point
Copy the full SHA 7f7f1c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 315b3b4 - Browse repository at this point
Copy the full SHA 315b3b4View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.