Do I need to carefully select the mysql database column data type, or can I configure things on varchar (99999) without size limit without sacrificing performance?
thank:)
Undoubtedly, for non-trivial databases, data types are very important .
For mysql functions (such as time, string or aggregate functions), it is important to choose the right data types.
For schema functionality (such as attachments), it is important to select the correct data types.
For performance, each byte of each field is counted.
.
DBA - .:)
, , . , , . , , .
, VARCHAR , , CHAR , , . VARCHAR , , , , .
, VARCHAR, , MySQL 1000 . , VARCHAR (100), .
( VARCHAR (99999) MySQL - VARCHAR 255, VARCHAR .)
, . , , , , , . , , "Asd $% * @)", ?
, , , , , , .
Depends on what you want to do. For sorting, you want integers to be stored as integers, I would say: For small databases, although you probably won't suffer too much from making everything a cook.
You can also use select * from your_table procedure analyse(2, 5)(adjust numbers for your convenience) to have an idea of how MySQL thinks your tables should be.
select * from your_table procedure analyse(2, 5)
Source: https://habr.com/ru/post/1776258/More articles:Startup C # automatically adds the application to the startup folder - c #How to set up your own remote debugging? - c ++Adding an Application to Run Vista or Win7 - vb.netIs there a multi-valued keystore? - databaseA few questions about the Qt file - c ++Jinja macros, access to various blocks - pythonCenter text on layout - androidThe default Python variable for the loop is variablesGuidelines for setting up Xcode projects for large teams? - xcodeCan anyone close the popup generated by the bPopup jQuery plugin from a child iframe? - javascriptAll Articles