V
V
Vladimir2016-09-18 11:37:27
MySQL
Vladimir, 2016-09-18 11:37:27

Is there any difference in speed, tinyint or int?

Good day! Tell me if there is a difference in speed or size between tinyint, smallint, mediumint, int, bigint. Does it make sense to use them for example for id where the value will be small or do they go as limiters in size?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Optimus, 2016-09-18
@MasterGerold

Yes, the difference in speed is visible if there is a lot of data, and they also take up space in different ways
www.mysql.ru/docs/man/Storage_requirements.html
int is 4 times larger than tinyint

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question