Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
forkerenok
· 5y ago · 0 comments
I think this is still workable with an expression/functional index, where the indexed expression is "happened_at IS NOT NULL".
Comments
[–]
isuckatcoding
5y ago
Seems like a whole lot of extra trouble to be honest. What happens when you need to create a composite index?
[–]
forkerenok
OP
5y ago
You can do indexes that are composites of plain field values and/or expressions! At least in Postgres.
As for the trouble, I agree, it's a bit more involved.