Re: How to do faster DML - Mailing list pgsql-general

From Greg Sabino Mullane
Subject Re: How to do faster DML
Date
Msg-id CAKAnmmLnAc-MvZj_py537Ph0=p0VeTf9oe_mmGgYT7D8XoagBQ@mail.gmail.com
Whole thread Raw
In response to Re: How to do faster DML  (veem v <veema0000@gmail.com>)
List pgsql-general
I really worry you are overthinking this. The only real concern is going from INT to BIGINT, jumping from 4 to 8 bytes or storage. That really covers 99% of real world cases, and the canonical advice is to start with BIGINT if you ever think your rows are going to be numbered in the billions. Also, a NUMERIC can cause a table rewrite - try changing the scale, not just the precision. And if your scale is 0, why are you using numeric? :)

Cheers,
Greg

pgsql-general by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: How to do faster DML
Next
From: "Peter J. Holzer"
Date:
Subject: Re: How to do faster DML