Before posting this question I searched the internet to know the differences and performance of each type and I came to the conclusion that I should discuss a little more about this subject here with the experts, rs, I already know the differences between CHAR
CHARACTER VARYING (Varchar)
and TEXT (Blob)
, but what you are getting is the performance, according to the comments Varchar
and Text
had the same average in milliseconds, but it is not what I am going through, I have a system of medicine and work security, where many texts are saved so I have opted for type TEXT
, but this is going to cost me dear, the screens that need to open these fields have taken a lot of time, when hidden (retreat) the screen opens immediately. >
The question is:
Can I use CHARACTER VARYING
without limiting characters like TEXT
or can I have problems in the future?
The question is why from what I have read regarding TEXT
or BLOB
some banks save this field separately from the table and so they should be used carefully, I explain, a lot of people come out creating a table like this:
Nome: Text
Endereco: Text
Bairro: Text
The old custom of Access and this should not be done in relational databases. What is the experience of friends in this respect and what would you recommend?
I have taken all precautions regarding indexes, data types and selects
to improve performance, when there were few data was all right, now the base with tables of 6 million records the system starts to take longer than expected.