MySQL Forums
Forum List  »  Performance

Index on bigint or decimal(10,0)?
Posted by: Foad Tazi
Date: September 25, 2018 05:31AM

Hi,

I've been googling but couldn' find a concrete answer.

Have an ID column that can take up 10 digits and will be used in joins.

For PK/Index creation, what is the impact on performance (reading) if using bigint vs decimal(10,0)?

Bigint will take more space (8 bytes), but is it more performant when it's used in joins?

Thanks,

Foad

Options: ReplyQuote


Subject
Views
Written By
Posted
Index on bigint or decimal(10,0)?
1436
September 25, 2018 05:31AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.