github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/sql/colexec/constants.go (about)

     1  // Copyright 2019 The Cockroach Authors.
     2  //
     3  // Use of this software is governed by the Business Source License
     4  // included in the file licenses/BSL.txt.
     5  //
     6  // As of the Change Date specified in that file, in accordance with
     7  // the Business Source License, use of this software will be governed
     8  // by the Apache License, Version 2.0, included in the file
     9  // licenses/APL.txt.
    10  
    11  package colexec
    12  
    13  // DefaultVectorizeRowCountThreshold denotes the default row count threshold.
    14  // When it is met, the vectorized execution engine will be used if possible.
    15  // The current number 1000 was chosen upon comparing `SELECT count(*) FROM t`
    16  // query running through the row and the vectorized execution engines on a
    17  // single node with tables having different number of columns.
    18  // Note: if you are updating this field, please make sure to update
    19  // vectorize_threshold logic test accordingly.
    20  const DefaultVectorizeRowCountThreshold = 1000
    21  
    22  // VecMaxOpenFDsLimit specifies the maximum number of open file descriptors
    23  // that the vectorized engine can have (globally) for use of the temporary
    24  // storage.
    25  const VecMaxOpenFDsLimit = 256
    26  
    27  const defaultMemoryLimit = 64 << 20 /* 64 MiB */