A
A
Alexander Avtomonov2014-04-19 14:47:15
PostgreSQL
Alexander Avtomonov, 2014-04-19 14:47:15

How well does PostgreSQL work with NULL values?

As far as I know, at least in the past, MySQL had problems with NULL - queries with it were slow to process. Does Postgres have this problem? Perhaps it makes sense to use 0 or "" where possible?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
max_mara, 2014-04-19
@avtomon

Null does not affect performance. Performance was affected by indexing, before 8.2 b-tree in postgres was not able to index null values. If you suddenly want to use any other indexing algorithm, then it looks like you should refrain from using null
www.postgresql.org/docs/9.3/interactive/indexes-ty...
stackoverflow.com/questions/1222314/does-setting-n. ..

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question