12 ms·
> If your system is sensitive to such change, you likely should optimize something else. This isn’t even optimization, it’s just understanding your tools and n
by sgarland 2y ago
> If your system is sensitive to such change, you likely should optimize something else.
This isn’t even optimization, it’s just understanding your tools and needs. It’s akin to profiling your app under load, seeing that at worst it needs 1 GiB of RAM allocated, and then giving it 8 EiB just in case.
By all means, if you can reasonably predict that a given table will near or pass 2^31 rows in the near future, just set it to BIGINT now. But as has been pointed out, most apps are never, ever going to have close to 2 billion users, or for that matter 2 billion anything. The only thing I can think of that might reasonably run up against that would be invoices for large scales, or object metadata for something like Notion.
- riku_iki 2y ago> But as has been pointed out, most apps are never, ever going to have close to 2 billion users, or for that matter 2 billion anything. T all computers will be fine with 640kb of ram