What is the best way to index a DDS EPiServer property

What is the best way to add indexes to existing objects mapped to DDS? Several hundred thousand objects are already stored in the database.

Is it easy to just add [EPiServerDataIndex] atttribute to my existing classes, recompile and redeploy the site?

+6
source share
1 answer

Your options seem to be:

1) Add the attributes [EPiServerDataIndex] or ...

2) Add indexes through the repository options when creating your repository:

var params = new StoreDefinitionParameters(); storeParams.IndexNames.Add("SomeModelPropertyName"); var store = DynamicDataStore.CreateStore<YourType>("StoreName", params);

More here

+3
source

Source: https://habr.com/ru/post/985302/


All Articles