Skip to content
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

Feature: replace sqlite3 with better-sqlite3 #4717

Closed
evereq opened this issue Jun 10, 2022 · 0 comments
Closed

Feature: replace sqlite3 with better-sqlite3 #4717

evereq opened this issue Jun 10, 2022 · 0 comments
Assignees
Labels
priority: low This issue is very low priority type: enhancement ✨ New feature or request
Milestone

Comments

@evereq
Copy link
Member

evereq commented Jun 10, 2022

Please see https://github.com/WiseLibs/better-sqlite3.

The idea is to replace the "native" npm package of sqlite3 with a faster variant.
E.g. wizeline/project-lab#297, WiseLibs/better-sqlite3#262, etc.

Note: it also should be replaced in Desktop Apps / Server, not only in the backend APIs.

In your ormconfig.json change the type to "type": "better-sqlite3",

import Database from 'better-sqlite3';
const db = new Database('foobar.db', options);
db.pragma('journal_mode = WAL');
@evereq evereq added the type: enhancement ✨ New feature or request label Jun 10, 2022
@evereq evereq added this to the v0.7 milestone Jun 10, 2022
@evereq evereq added the priority: low This issue is very low priority label Jun 10, 2022
@evereq evereq moved this to To do in Ever Gauzy Platform Mar 16, 2023
evereq added a commit that referenced this issue Oct 9, 2023
@adkif adkif closed this as completed Oct 17, 2023
@github-project-automation github-project-automation bot moved this from To do to Done in Ever Gauzy Platform Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: low This issue is very low priority type: enhancement ✨ New feature or request
Projects
Development

No branches or pull requests

3 participants