Replies: 2 comments 12 replies
-
For the record, think I found the way to use jsonb blob representation:
I also tried to use a file based database. Either way, BLOB, String, file db or memory always results in SQLITE_TOOBIG at the same entry. |
Beta Was this translation helpful? Give feedback.
-
@jeremyevans I think I got something, see: xerial/sqlite-jdbc#681 ... now trying to raise that limit at runtime to see any changes. |
Beta Was this translation helpful? Give feedback.
-
I am using sequel together with jruby 9.4.6.0.
Database is opened and filled like this:
Is it correct to put the string representation of the (treeish) hash object
cache_entry
as argument to the insert call to get all the nice sqlite json features of the JSON column?Insert at least works up until a somewhat larger entry is inserted. I am getting:
So inserted json string was only ~1.3M Characters -> depending on encoding max. ~2.6M bytes.
That is strange, as SQLITE_TOOBIG should only occur for more than 1G bytes. Anybody got an idea why SQLITE_TOOBIG is thrown?
I also tried to insert to pass the hash object itself into the insert call, but then I get this:
already with the first insert.
How to correctly insert somewhat larger JSON objects into a memory sqlite database with sequel?
thanks alot and best
mrckzgl
Beta Was this translation helpful? Give feedback.
All reactions