Skip to content
Permalink
Browse files
[NO ISSUE][EXT] Change default read buffer size to 8K
- user model changes: no
- storage format changes: no
- interface changes: no

Details:
- Change default read buffer size for external datasets to 8K.

Change-Id: I5f6108e07080c0a67f6f9496d90a4b49a14b081b
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/10663
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Michael Blow <mblow@apache.org>
  • Loading branch information
mhubail committed Mar 24, 2021
1 parent 706b2e9 commit 45d20b7454c11e76a5767c53be4c66fc1b4d2457
Showing 1 changed file with 3 additions and 1 deletion.
@@ -24,6 +24,8 @@
import java.util.function.LongSupplier;
import java.util.function.Supplier;

import org.apache.hyracks.util.StorageUtil;

public class ExternalDataConstants {

private ExternalDataConstants() {
@@ -257,7 +259,7 @@ private ExternalDataConstants() {
/**
* Size default values
*/
public static final int DEFAULT_BUFFER_SIZE = 4096;
public static final int DEFAULT_BUFFER_SIZE = StorageUtil.getIntSizeInBytes(8, StorageUtil.StorageUnit.KILOBYTE);
public static final float DEFAULT_BUFFER_INCREMENT_FACTOR = 1.5F;
public static final int DEFAULT_QUEUE_SIZE = 64;
public static final int MAX_RECORD_SIZE = 32000000;

0 comments on commit 45d20b7

Please sign in to comment.