perf(db): optimize some tables to stored_only_fields to recrudesce memory usage of big databases #152

This commit is contained in:
Alexey Kasyanchuk
2021-09-02 01:57:33 +03:00
parent 83a78c4e6c
commit d65f214d4d
4 changed files with 15 additions and 14 deletions

View File

@ -17,11 +17,11 @@ describe("sphinx", () => {
})
it("insert", function(done) {
sphinx.query("INSERT INTO files(id, hash, path, pathIndex, size) VALUES(50001, 'a', 'bashaa', 'bashaa', '50')", (err) => {
sphinx.query("INSERT INTO files(id, hash, path, size) VALUES(50001, 'a', 'bashaa', '50')", (err) => {
if(err)
throw new Error(err)
sphinx.query("INSERT INTO files(id, hash, path, pathIndex, size) VALUES(50002, 'b', 'biotu', 'biotu', '30')", (err) => {
sphinx.query("INSERT INTO files(id, hash, path, size) VALUES(50002, 'b', 'biotu', '30')", (err) => {
if(err)
throw new Error(err)