I am learning sqlalchemy and I am a little confused about what type should I use to store data, which can be even 20000 character long. Is it a good idea to use Unicode(20000)? I am afraid, that in case of shorter texts I will waste to much memory.
For that type of data you can use Text or UnicodeText. They do not require you to specify length.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With