Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
5065 Visualizzazioni

Hi Mates,
I think psql support var char and odoo has no such variable length fields. 
For a case,
Odoo docs defines: Char: A string of limited length. The required size parameter determines its size.
Where we can give its size as field attribute like size=30 .

But, I am looking for a field (Char / Text) where the size should be dynamic (Based on the value stored in it). I think this can save many reserved memory.
Any hints ?


Avatar
Abbandona
Risposta migliore

Odoo only uses varchar data types in the database, even though in your source code you specify it as a Char field. I did a search of all data types used in the database and there wasn't a single table column that had a data type of char.

Avatar
Abbandona
Autore

Yes. You are correct. I checked with Pgadmin

Post correlati Risposte Visualizzazioni Attività
2
mar 24
9067
1
feb 24
1910
2
ott 23
6536
2
nov 22
6949
0
set 21
3032