Predictor: Loading an analysis model from the Data Warehouse takes too long

If you are trying to load a large analysis model from the Data Warehouse, it may take a long time to load. If you load the analysis model from a file, the load time required may decrease.

Solution

Instead of using the LoadModelFromDB method each time, you can cache the model as a file on the Web Server using the IPredictorClient::SaveModelToFile method, and then load it using the LoadModelFromFile method. Loading from a file will be faster and will work even if the Data Warehouse is not available.

See Also

IPredictorClient::SaveModelToFile (Visual C++)

PredictorClient.SaveModelToFile (Visual Basic)


All rights reserved.