Modifying store configurations
Adding an index on the TradeAttributes store in the PnL schema. Setting a global config for the chunksize, overridden by the TradeAttributes configuration:
IMutableStore config = new MutableStoreConfig();
config
.withIndexOn("InstrumentClass", "AsOfDate");
config
.withChunkSize(2048);
IMutableStore globalConfig = new MutableStoreConfig();
globalConfig
.withChunkSize(1024);
configurator.addConfiguration("PnL", "TradeAttributes", config);
configurator.addConfiguration(ConfigurationConstants.ALL_STORES, globalConfig);