Can I ask you why bun
does not have nullzero
by default unlike go-pg
?
#498
-
Hi @vmihailenco, can I ask you why I'm using and asking for Postgres. Is there any difference in storing empty strings, 0 or NULL in PG? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It is disabled by default because most/some users don't expect this behavior. |
Beta Was this translation helpful? Give feedback.
-
Reading here and there online (eg https://stackoverflow.com/questions/1222314/does-setting-not-null-on-a-column-in-postgresql-increase-performance) I think it's best to avoid NULL values when possibile. I will revert each |
Beta Was this translation helpful? Give feedback.
Reading here and there online (eg https://stackoverflow.com/questions/1222314/does-setting-not-null-on-a-column-in-postgresql-increase-performance) I think it's best to avoid NULL values when possibile.
I will revert each
nullzero
.