How big is too big for a PostgreSQL table?

I’m working on the design for a RoR project for my company, and our development team has already run into a bit of a debate about the design, specifically the database.

We have a model called Message that needs to be persisted. It’s a very, very small model with only three db columns other than the id, however there will likely be A LOT of these models when we go to production. We’re looking at as much as 1,000,000 insertions per day. The models will only ever be searched by two foreign keys on them which can be indexed. As well, the models never have to be deleted, but we also don’t have to keep them once they’re about three months old.

So, what we’re wondering is if implementing this table in Postgres will present a significant performance issue? Does anyone have experience with very large SQL databases to tell us whether or not this will be a problem? And if so, what alternative should we go with?

2 Answers

Leave a Comment