~ubuntu-branches/ubuntu/natty/kdebase-runtime/natty-proposed

« back to all changes in this revision

Viewing changes to nepomuk/services/storage/repository.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-11-24 11:07:10 UTC
  • mto: (0.8.7 upstream)
  • mto: This revision was merged to the branch mainline in revision 129.
  • Revision ID: james.westby@ubuntu.com-20101124110710-6dbsyw0yh21qvn82
Tags: upstream-4.5.80
ImportĀ upstreamĀ versionĀ 4.5.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include <Soprano/StorageModel>
23
23
#include <Soprano/Error/Error>
24
24
#include <Soprano/Vocabulary/RDF>
25
 
 
26
 
#define USING_SOPRANO_NRLMODEL_UNSTABLE_API
27
 
#include <Soprano/NRLModel>
 
25
#include <Soprano/Util/SignalCacheModel>
28
26
 
29
27
#include <KStandardDirs>
30
28
#include <KDebug>
163
161
 
164
162
    kDebug() << "Successfully created new model for repository" << name();
165
163
 
166
 
    // create a NRLModel for those extra nice features
 
164
    // create a SignalCacheModel to make sure no client slows us down by listening to the stupid signals
167
165
    // =================================
168
 
    Soprano::NRLModel* nrlModel = new Soprano::NRLModel( m_model );
169
 
    nrlModel->setParent(this); // memory management
170
 
    nrlModel->setEnableQueryPrefixExpansion( true );
 
166
    Soprano::Util::SignalCacheModel* scm = new Soprano::Util::SignalCacheModel( m_model );
 
167
    scm->setParent(this); // memory management
171
168
 
172
 
    setParentModel( nrlModel );
 
169
    setParentModel( scm );
173
170
 
174
171
    // check if we have to convert
175
172
    // =================================
338
335
 
339
336
    // 100 server threads is hopefully enough - at some point the problem of maximum server threads == max client
340
337
    // needs to be addressed as well
341
 
    settings << Soprano::BackendSetting( "thread", 100 );
 
338
    settings << Soprano::BackendSetting( "ServerThreads", 100 );
342
339
 
343
340
    return settings;
344
341
}