#[SOLVED] i have 20 gb json data but...
14 messages · Page 1 of 1 (latest)
Actually I am undecided whether I should use mysql data and mysql or json.
which one is faster
well faster is completely irrelevant because one is a database and the other is a language. JSON is to represent data, mysql to manage data. If you have no need to change any of the data, then JSON is much better
no only for readingü
then json
so mysql and json same speed ?
MySQL stores data in a database or actually is a database. JSON stores data in a format to be passed to and from the server to the client. Javascript/jquery can use JSON as data objects, but they only exist on the client side for the life of the page.```
Thank you 🙂
I have question more ```let yaramiyedihabesistan = new Array()
module.exports.sorgupanel = function name(type, klavye, sayfa) {
fs.readdirSync("./veriler/").forEach(e=> {
let rawdata = fs.readFileSync('./veriler/'+e);
for (const iterator of JSON.parse(rawdata)[2].data) {
yaramiyedihabesistan.push(iterator)
}
})```
this can check infinity?
i have 101 million data
it'll look through every file you have in the "./veriler/'" directory
worked 🙂