It’s things like this that keep us paying $millions for SQL Server Enterpise vs. Postgres.
It’s things like this that keep us paying $millions for SQL Server Enterpise vs. Postgres.
See https://www.postgresql.org/docs/current/sql-createindex.html
> An index field can be an expression computed from the values of one or more columns of the table row. This feature can be used to obtain fast access to data based on some transformation of the basic data. For example, an index computed on upper(col) would allow the clause WHERE upper(col) = 'JIM' to use an index.
No need to maintain a separate view or its index
There's always a self-join or a left join or a sqlclr function or a format or an unsupported aggregate or something else that was a critical thing that I really needed in the index.
If the Microsoft SQL Server team really thinks this feature is a critical selling point, maybe they should work more on it since they were introduced back in like SQL Server 2005 and still have the same miserable whips-and-chains-bondage level masochism experience.
Using these millions to better design your applications is better in the long run. You can totally live without those with a good schema and better queries.
I think features like column store and always on are worth more that those band-aid features aimed at pleasing ugly ERPs.
https://docs.microsoft.com/en-us/sql/relational-databases/vi...