So, iam using LowDB to save some info about my BOT,
so i do it like that:
const low = require('lowdb')
const FileSync = require('lowdb/adapters/FileSync')
const adapter = new FileSync(__dirname +'db.json')
const db = low(adapter)
db.defaults({ posts: [], user: {}, count: 0 }).write()
db.set('streamcraft', []).write()
db.set('twitter', []).write()
db.set('youtube', []).write()
Well everything goes fine aside from the fact that the file take a long time to update, wich make it unusable, is this a problem with lowDBor Glitch ? how can i fix it?
MOD EDIT: formatting