News for hackers. Stuff that matters.
Re:Postgres Just Cracked the Top Fastest Databases for Analy... by rapfaria on Saturday March 08, 2025 @07:01AM (#43299511)
> 2B records of user events during their sessions. As it grew past a 500 million records it turned out to be impossible to query this table in any thing close to real-time - it was basically untouchable because it was so slow.

This is a solved problem, and it seems the technical folks over there lacked the skills to make it work. Having indexes is just the tip of the iceberg. Composite indexes, partitioning, sharding, caching, etc, can lower reads to a few seconds on disk.

Re:Postgres Just Cracked the Top Fastest Databases for Analy... by bhouston on Saturday March 08, 2025 @07:10AM (#43299568)
> This is a solved problem, and it seems the technical folks over there lacked the skills to make it work. Having indexes is just the tip of the iceberg. Composite indexes, partitioning, sharding, caching, etc, can lower reads to a few seconds on disk.

Or just use BigQuery and it is works, it is cheaper to run (by 10x to 100x) and can be done by a junior dev rather than a PhD in Database configuration.

I prefer simple solutions though - I also hate Kubernetes: https://benhouston3d.com/blog/why-i-left-kubernetes-for-goog...

Re:Postgres Just Cracked the Top Fastest Databases for Analy... by DrFalkyn on Saturday March 08, 2025 @07:54AM (#43299865)
Indices are one the first things you learn in any decent DB course, so you don’t need a PhD

But if BigTable just solves the problem it seems the way to go

PostGres is popular for a reason, it’s ACID unlike BigTable

You may run into these problems later on, you may not

Re:Postgres Just Cracked the Top Fastest Databases for Analy... by bhouston on Saturday March 08, 2025 @09:39AM (#43300599)
I love Postgres and use it a lot but not for analytics.
Re:Postgres Just Cracked the Top Fastest Databases for Analy... by furstenheim on Saturday March 08, 2025 @10:02AM (#43300777)
ACID is good and it has an implementation cost (vacuum for example). When doing analytics you do not care for ACID
Re:Postgres Just Cracked the Top Fastest Databases for Analy... by majkinetor on Saturday March 08, 2025 @08:34AM (#43300138)
I have 50 columns in a table with 10B records in a partitioned table. People can search using any combination. There are a huge number of possible composite indexes, so we don't have any, but we have every column indexed. Most queries take a minute or two, and we also experienced a sudden drop in performance even for queries that used to work OK. Not sure what to do next to improve query speed.
Re:Postgres Just Cracked the Top Fastest Databases for Analy... by moonikakiss on Saturday March 08, 2025 @11:31AM (#43301377)
This is an interesting workload. We've heard similar pains for fast filtering on many large column tables.

For this workload, having a columnstore version of your table will help.

DM us: https://join.slack.com/t/mooncakelabs/shared_invite/zt-2sepj.... We can help.

Re:Postgres Just Cracked the Top Fastest Databases for Analy... by zhousun on Saturday March 08, 2025 @11:34AM (#43301395)
Yea this is indeed a repeated pattern we saw people requesting (filter on many columns) and we are trying to solve with pg_mooncake. If you are interested, feel free to join mooncake-devs.slack.com to chat more about your use case.
Re:Postgres Just Cracked the Top Fastest Databases for Analy... by Isn0gud on Saturday March 08, 2025 @07:10AM (#43299570)
Doesn't sound like solved problem to me if you have to employ more than four different mitigation strategies.