I know, I know, "databases are bad for files" - but let's take something like an ECM suite where images and documents are literally part of a transaction, having to synchronize those between filesystem and database breaks the Atomic constraint in so many ways. PostgreSQL has LOB support, but oid's being 32-bits severely limits the usefulness of the feature without using convoluted workarounds (multiple databases).
PostgreSQL 10 Beta 1 Released
41–50 of 172 posts
Re: PostgreSQL 10 Beta 1 Released
#42Earlier quoted context omitted.
I'm interested. When you say almost, can you elaborate on any remaining use cases when you'd use Mongo?
I know it's pretty popular to hate on Mongodb now (even more so than it was to love on Mongodb 4 years ago), but there are still areas where it's better than a relational db. In game development, it's extremely helpful (especially as an "indie") to change the structure on a whim so easily. Also based on the design of the game I'm working on, I believe the document structure captures the structure of the data so much…
What you are describing can be done with PostgreSQL. One thing that is missing is better client libraries that make use of those data types. Morphia wins for now in that regard.
Re: PostgreSQL 10 Beta 1 Released
#43Re: PostgreSQL 10 Beta 1 Released
#44So glad that GiST indexes now support UUID and ENUM data types. That was a big wart for me due to needing exclusion constraints.
Re: PostgreSQL 10 Beta 1 Released
#45Re: PostgreSQL 10 Beta 1 Released
#46Earlier quoted context omitted.
I'm interested. When you say almost, can you elaborate on any remaining use cases when you'd use Mongo?
I know it's pretty popular to hate on Mongodb now (even more so than it was to love on Mongodb 4 years ago), but there are still areas where it's better than a relational db. In game development, it's extremely helpful (especially as an "indie") to change the structure on a whim so easily. Also based on the design of the game I'm working on, I believe the document structure captures the structure of the data so much…
Re: PostgreSQL 10 Beta 1 Released
#47Earlier quoted context omitted.
Every time I see a job post mentioning mysql I realize they just haven't discovered postgres, or they have some really gross problem. :/
Honestly, MySQL/MariaDB use has more do with features PostgreSQL didn't have until now. (i.e. Logical replication)
Re: PostgreSQL 10 Beta 1 Released
#48Re: PostgreSQL 10 Beta 1 Released
#49Earlier quoted context omitted.
I know it's pretty popular to hate on Mongodb now (even more so than it was to love on Mongodb 4 years ago), but there are still areas where it's better than a relational db. In game development, it's extremely helpful (especially as an "indie") to change the structure on a whim so easily. Also based on the design of the game I'm working on, I believe the document structure captures the structure of the data so much…
But the posters above you said that JSON and JSONB types in Postgres, and functionality around them, eliminated the need to use other databases for document type data. What you are describing can be done with PostgreSQL. One thing that is missing is better client libraries that make use of those data types. Morphia wins for now in that regard.
Postgres storing JSON types != All mongo functionality
I'm sure I could achieve everything I'm doing in mongo by some roundabout way in Postgres, but if you're doing a large amount of reading/modifying partial fields within JSON structure, it's the exact use case for mongo.
Re: PostgreSQL 10 Beta 1 Released
#50So glad that GiST indexes now support UUID and ENUM data types. That was a big wart for me due to needing exclusion constraints.
I always just cast to text in this scenario.
For enums, I had to create a function to cast an enum to a unique integer, and used that in my exclusion constraints. It's hacky as hell and not something I like, but it's worked for the past 3 years.
I'll be really really happy to get rid of those hacks come PG 10 though.