#[SOLVED] i have 20 gb json data but...

14 messages · Page 1 of 1 (latest)

glad sun
#

then partition the data into 2gb a piece and then parse it

fiery oxide
#

which one is faster

glad sun
#

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

fiery oxide
#

no only for readingü

glad sun
#

then json

fiery oxide
glad sun
#

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.```
fiery oxide
#

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

glad sun
#

it'll look through every file you have in the "./veriler/'" directory