Skip to content

Commit

Permalink
Batch scan. Fixed issue #5081
Browse files Browse the repository at this point in the history
  • Loading branch information
lvca committed Oct 16, 2015
1 parent 5129a3e commit d3c1059
Show file tree
Hide file tree
Showing 3 changed files with 163 additions and 136 deletions.
Expand Up @@ -19,16 +19,6 @@
*/
package com.orientechnologies.orient.core.config;

import com.orientechnologies.common.io.OFileUtils;
import com.orientechnologies.common.log.OLogManager;
import com.orientechnologies.common.util.OApi;
import com.orientechnologies.orient.core.OConstants;
import com.orientechnologies.orient.core.Orient;
import com.orientechnologies.orient.core.cache.ORecordCacheWeakRefs;
import com.orientechnologies.orient.core.metadata.OMetadataDefault;
import com.orientechnologies.orient.core.serialization.serializer.record.binary.ORecordSerializerBinary;
import com.orientechnologies.orient.core.storage.cache.local.O2QCache;

import java.io.File;
import java.io.PrintStream;
import java.lang.management.ManagementFactory;
Expand All @@ -41,6 +31,16 @@
import java.util.logging.FileHandler;
import java.util.logging.Level;

import com.orientechnologies.common.io.OFileUtils;
import com.orientechnologies.common.log.OLogManager;
import com.orientechnologies.common.util.OApi;
import com.orientechnologies.orient.core.OConstants;
import com.orientechnologies.orient.core.Orient;
import com.orientechnologies.orient.core.cache.ORecordCacheWeakRefs;
import com.orientechnologies.orient.core.metadata.OMetadataDefault;
import com.orientechnologies.orient.core.serialization.serializer.record.binary.ORecordSerializerBinary;
import com.orientechnologies.orient.core.storage.cache.local.O2QCache;

/**
* Keeps all configuration settings. At startup assigns the configuration values by reading system properties.
*
Expand Down Expand Up @@ -457,6 +457,10 @@ public void change(final Object iCurrentValue, final Object iNewValue) {
"Pages to early fetch during scan. Setting this value higher makes scan faster because reduce the number of I/O operations, even if consumes more memory. Use 0 to do not prefetch",
Integer.class, 20),

QUERY_SCAN_BATCH_SIZE("query.scanBatchSize",
"Scan clusters at blocks of records. This avoids to keep the lock on storage and cluster for too much time. High values means faster execution, but also a lower concurrency level. Set 0 to disable batch scan. This is suggested for readonly databases",
Long.class, 100000),

QUERY_SCAN_THRESHOLD_TIP("query.scanThresholdTip",
"If total number of records scanned in a query is major than this threshold a warning is given. Use 0 to disable it",
Long.class, 50000),
Expand Down

0 comments on commit d3c1059

Please sign in to comment.