Skip to content

Commit

Permalink
Don't use patterns in order to save RAM
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahbast committed Oct 3, 2021
1 parent 07f7be9 commit d0501c5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/index/Index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -903,12 +903,17 @@ void Index::createFromOnDiskIndex(const string& onDiskBase) {
LOG(INFO) << "total vocab size is " << _totalVocabularySize << std::endl;
_PSO.loadFromDisk(_onDiskBase);
_POS.loadFromDisk(_onDiskBase);
// Do not load OPS, OSP, SPO, and SOP. Note that this isn't very harmful,
// since they are only needed for SPARQL queries with a variable at a
// predicate position, which are rare.
//_OPS.loadFromDisk(_onDiskBase);
//_OSP.loadFromDisk(_onDiskBase);
//_SPO.loadFromDisk(_onDiskBase);
//_SOP.loadFromDisk(_onDiskBase);

if (_usePatterns) {
// Do not load the patterns. For some reason, this requires too much RAM
// for UniProt (it shouldn't).
if (false) { // _usePatterns) {
// Read the pattern info from the patterns file
std::string patternsFilePath = _onDiskBase + ".index.patterns";
ad_utility::File patternsFile;
Expand Down

0 comments on commit d0501c5

Please sign in to comment.