prisma-engines icon indicating copy to clipboard operation
prisma-engines copied to clipboard

Index parameter definition in data model

Open pimeys opened this issue 5 years ago • 2 comments

There might be use-cases for our users to define index settings through our data model. This is specific to SQL Server, but a quite common setting is the clustering. The SQL Server documentation has more information what parameters can be given.

We might want to consider giving the user a possibility to define these settings in the data model level, or we might want to even decide the correct index parameter based on their features in the table.

pimeys avatar Oct 06 '20 09:10 pimeys

Postgres also has a ton of useful ways to tweak indexing strategies and what exactly gets indexes.

tomhoule avatar Oct 06 '20 09:10 tomhoule

This would not be a engine level, but a schema level change as it needs representation in PSL. An issue in prisma/prisma would be useful (kind/feature, team/product).

janpio avatar Oct 06 '20 23:10 janpio