TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Microsoft open sources PostgreSQL extensions

161 pointsby beardyw3 months ago

12 comments

zknill3 months ago
&gt; <i>A spokesperson at MongoDB said: &quot;The rise of MongoDB imitators proves our document model is the industry standard. But bolting an API onto a relational database isn&#x27;t innovation – it&#x27;s just kicking the complexity can down the road. These &#x27;modern alternatives&#x27; come with a built-in sequel: the inevitable second migration when performance, scale, and flexibility hit a wall.&quot;</i><p>I think the reason that a there are so many MongoDB wire compatible projects (like this postgres extension from microsoft, and ferretdb) is because people have systems that have MongoDB clients built into their storage layers but don&#x27;t want to be running on MongoDB anymore, exactly <i>because</i> &quot;performance, scale, and flexibility hit a wall&quot;.<p>If you can change the storage engine, but keep the wire protocol, it makes migrating off Mongo an awful lot cheaper.
评论 #43014493 未加载
评论 #43035153 未加载
theshrike793 months ago
I&#x27;ve said it as a joke many times that PostgreSQL can be a better NoSQL database than many actual NoSQL databases just by creating a (text, JSONB) table.<p>You can do actual searches inside the JSON, index the table with JSONB contents etc. Things that became available in MongoDB very very late.
评论 #43013139 未加载
评论 #43013263 未加载
评论 #43013689 未加载
评论 #43015138 未加载
评论 #43013779 未加载
评论 #43013370 未加载
评论 #43023608 未加载
评论 #43015768 未加载
评论 #43034163 未加载
评论 #43013008 未加载
nikita3 months ago
The word is it&#x27;s a serious effort on the part of Microsoft. It&#x27;s missing a MongoDB wire protocol which they plan to opensource as well. In the meantime it&#x27;s possible to use FerretDB for that.<p>I think the biggest use case is big data and dev platform that need application compatibility and wrapping Atlas is less attractive for some reason.
Eikon3 months ago
I really don&#x27;t see the point of this compared to Postgres&#x27; native JSON support.<p>And with things like this in the source <a href="https:&#x2F;&#x2F;github.com&#x2F;microsoft&#x2F;documentdb&#x2F;blob&#x2F;a0c44348fb473daf75b8950d0118201c0b3e6d19&#x2F;pg_documentdb_core&#x2F;src&#x2F;planner&#x2F;selectivity.c#L24">https:&#x2F;&#x2F;github.com&#x2F;microsoft&#x2F;documentdb&#x2F;blob&#x2F;a0c44348fb473da...</a><p>I&#x27;d definitely stay away from it.
评论 #43013019 未加载
评论 #43013718 未加载
评论 #43013464 未加载
评论 #43012938 未加载
atombender3 months ago
I was hoping this was an implementation of the schemaless indexing [1], which is the foundation for Azure DocumentDB.<p>That design allows arbitrary nested JSON data to be indexed using inverted indexes on top a variation of B-trees called Bw-trees, and seems like a nice way of indexing data automatically in a way that preserves the ability to do both exact and range matching on arbitrarily nested values.<p>[1] <a href="https:&#x2F;&#x2F;www.vldb.org&#x2F;pvldb&#x2F;vol8&#x2F;p1668-shukla.pdf" rel="nofollow">https:&#x2F;&#x2F;www.vldb.org&#x2F;pvldb&#x2F;vol8&#x2F;p1668-shukla.pdf</a>
评论 #43014778 未加载
pier253 months ago
how come Microsoft is investing in PG but dotnet doesn&#x27;t have an official PG driver?
评论 #43018373 未加载
评论 #43019533 未加载
评论 #43046635 未加载
cyberax3 months ago
I wish PostgreSQL would support better syntax for JSON updates. You can use `-&gt;&gt;` to navigate the JSON fields, but there&#x27;s nothing similar for updates. You have to use clumsy functions or tricks with `||` and string casting.
评论 #43013973 未加载
giancarlostoro3 months ago
My biggest gripe with MongoDB is the memory requirements, which did not become immediately obvious to me when I was first using it. If you index a field, Mongo will shove every record from that field into memory, which can add up very quickly, and can catch you off-guard if you&#x27;re not accounting for it. It is otherwise a fantastic database that I find myself being highly productive with. I just don&#x27;t always have unlimited memory to waste, so I opt for more memory friendly SQL databases.
pickle-wizard3 months ago
This looks promising. I am using MongoDB in my application because the data is document oriented. I did take a brief look at using JSONB in Postgres, but I found it a lot harder to work with.<p>I would prefer to use Postgres as my database, so this is worth investigating. Taking a brief look at the github page, it looks like it will be easy to swap it out in my code. So I think I know what I&#x27;ll be spending my next sprint on.
fowl23 months ago
A seemingly coordinated release with the nominally independent FerretDb? What’s the relationship here?
humanlity3 months ago
is it <a href="https:&#x2F;&#x2F;github.com&#x2F;microsoft&#x2F;documentdb">https:&#x2F;&#x2F;github.com&#x2F;microsoft&#x2F;documentdb</a> ?
评论 #43023054 未加载
ChicagoDave3 months ago
Microsoft silently hates NoSql document data storage.<p>The complexity of maintaining a relational database is at the core of their proprietary business model.<p>For operational systems, documents are just better in every way.<p>Leave the rdbms for analytics and reporting.
评论 #43013152 未加载