Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/25/09 14:48:56 (15 years ago)
Author:
gkronber
Message:

Introduced paging for queries to fix problems with large WCF messages. #257 (CEDMA console doesn't handle communication- and timeout exceptions correctly)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.CEDMA.Core/DataSet.cs

    r1287 r1417  
    4949        // lazy loading of problem from DB
    5050        if (problem == null) {
    51           //var serializedDataVar = new HeuristicLab.CEDMA.DB.Interfaces.Variable("SerializedData");
    52           //var persistedData = Store.Query(
    53           //  new Statement[] { new Statement(new Entity(Ontology.CedmaNameSpace + Guid), Ontology.PredicateSerializedData, serializedDataVar)});
    5451          var persistedData = Store.Query(
    55             "<" + Ontology.CedmaNameSpace + Guid + "> <" + Ontology.PredicateSerializedData.Uri + "> ?SerializedData .");
     52            "<" + Ontology.CedmaNameSpace + Guid + "> <" + Ontology.PredicateSerializedData.Uri + "> ?SerializedData .", 0, 10);
    5653          if (persistedData.Count() == 1) {
    5754            Literal persistedLiteral = (Literal)persistedData.First().Get("SerializedData");
Note: See TracChangeset for help on using the changeset viewer.