Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best way to index property DDS EPiServer

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

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

like image 921
flalar Avatar asked Apr 16 '15 21:04

flalar


1 Answers

Seems your options are to either:

1) Add [EPiServerDataIndex] attributes or...

2) Add indexes through store parameters when creating your store:

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

More info here

like image 87
Ted Nyberg Avatar answered Jan 03 '23 15:01

Ted Nyberg