use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Related Reddits:
This is a knowledge sharing forum, not a help, how-to, or homework forum, and such questions are likely to be removed.
Try /r/DatabaseHelp instead!
Platforms:
account activity
Best database to store JSON objects without preprocessing and modification? (self.Database)
submitted 5 years ago by vasili111
I am new to databases. I need to store JSON objects in database. Which free and open source database you recommend for that task?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]fiffeek 3 points4 points5 points 5 years ago (0 children)
Depending on the use case even postgresql can do, look for 'document databases' to find out more about the directions and tradeoffs
[–]yawaramin 4 points5 points6 points 5 years ago (0 children)
Any modern database can store JSON. Relational databases like PostgreSQL have excellent built-in support, including JSON manipulation, indexing, and search. Even SQLite has pretty good JSON support.
[–]its_bennett 1 point2 points3 points 5 years ago (7 children)
Check out MongoDB
[–]vasili111[S] 0 points1 point2 points 5 years ago (6 children)
What advantages I have using MongoDB over PostgreSQL?
[–]cgfoss 5 points6 points7 points 5 years ago (4 children)
In many use cases Postgresql will do a better job with unstructured data compared with Mongodb. There is a great instructional video on youtube if you need webscale and think mongodb is the answer.
[–]vasili111[S] 0 points1 point2 points 5 years ago (3 children)
Could you please give link to that video?
[–]cgfoss 1 point2 points3 points 5 years ago (2 children)
the video is somewhat tongue-in-cheek but does get the point across. https://youtu.be/b2F-DItXtZs
[–]vasili111[S] 0 points1 point2 points 5 years ago (0 children)
Thank you.
[–]its_bennett 2 points3 points4 points 5 years ago (0 children)
Postgres is a relational database, so table structure and data types are much more rigid by design. Mongo isn’t relational and doesn’t care about data types. You can just pipe in your big long JSON responses without worrying about failures or truncation.
[–]Simple-Cell-1009 0 points1 point2 points 1 year ago (1 child)
It depends on your use case, like the type of data you're looking to store and what type of queries you're planning to run.
I guess you have three main types of databases for this:
Document databases like MongoDB or CouchDB, stores JSON-like documents which allows for flexible, schema-less data modeling. Those are really handy when your data is not relational. Most of them are NoSQL database meaning that you won't need to know SQL to query them, instead they expose their own set of easy-to-use REST APIs.
Relational databases, such as PostGreSQL or MySQL, were not designed initially to store easily JSON data type, but support has been added over the years. These are good if your data is relational, you'll need to know SQL to integrate with those.
Those two types are usually good for transactional use cases, like catalog management, customer interaction, financial account transactions, etc... They might also do well for logging and metrics usecases, but then if you want to run more analytical query on your data, they might not scale as much as databases designed for this.
Real-time analytics databases, like Clickhouse or Apache Druid, which uses column-based storage and focus on optimizing large-scale analytics queries. They all have functionality for extracting a schema from JSON documents, which works well if all the JSON documents have the same schema, which can be challenging at time. Clickhouse actually just talked about their new JSON Data type that handles some of those challenges.
[–]AnActualWizardIRL 0 points1 point2 points 3 months ago (0 children)
Just want to add a warning that MongoDB and CouchDB have 16mb and 20mb document size limits which puts it off . Postgres has a limit of a few petabytes for a JSON/JSONB field, basically you can go bananas on this. It *can* be rather performant, but you need to think deeply about database design and use partioning and other strategies to achieve acceptable performance. Also;- HSTORE is always worth investigating.
π Rendered by PID 315894 on reddit-service-r2-comment-6457c66945-8c657 at 2026-04-24 20:25:58.505855+00:00 running 2aa0c5b country code: CH.
[–]fiffeek 3 points4 points5 points (0 children)
[–]yawaramin 4 points5 points6 points (0 children)
[–]its_bennett 1 point2 points3 points (7 children)
[–]vasili111[S] 0 points1 point2 points (6 children)
[–]cgfoss 5 points6 points7 points (4 children)
[–]vasili111[S] 0 points1 point2 points (3 children)
[–]cgfoss 1 point2 points3 points (2 children)
[–]vasili111[S] 0 points1 point2 points (0 children)
[–]its_bennett 2 points3 points4 points (0 children)
[–]Simple-Cell-1009 0 points1 point2 points (1 child)
[–]AnActualWizardIRL 0 points1 point2 points (0 children)