mafintosh / flat-file-db

Fast in-process flat file database that caches all data in memory
196 stars 15 forks source link

error putting a long value #6

Open evaimitico opened 8 years ago

evaimitico commented 8 years ago

Is there any lenght limit for the value while doing a put on db?

i'm doing:

var flatfile = require('flat-file-db'); var db = flatfile.sync('mydb'); var key = 'key1' var value = ''; db.put(key,value)

JsonObjectPassedAsParam is a parameter. the snippet of code is working, but when i try to write particularly json objects, it give me the following error: Cannot read property 'length' of undefined

As attachment, one of large jsonObject impossibile to write.

Fabrizio json_impossibile_to_write.txt