Fix FLAGS_delta_chain_cache_threshold typo (#1181)
This commit is contained in:
parent
adb65b2fff
commit
97183fb9da
@ -202,7 +202,7 @@ inline bool CurrentVersionHasLabelProperty(const Vertex &vertex, LabelId label,
|
|||||||
// clang-format on
|
// clang-format on
|
||||||
});
|
});
|
||||||
|
|
||||||
if (useCache && n_processed >= FLAGS_delta_chain_cache_threashold) {
|
if (useCache && n_processed >= FLAGS_delta_chain_cache_threshold) {
|
||||||
auto &cache = transaction->manyDeltasCache;
|
auto &cache = transaction->manyDeltasCache;
|
||||||
cache.StoreExists(view, &vertex, exists);
|
cache.StoreExists(view, &vertex, exists);
|
||||||
cache.StoreDeleted(view, &vertex, deleted);
|
cache.StoreDeleted(view, &vertex, deleted);
|
||||||
|
@ -63,7 +63,7 @@ std::pair<bool, bool> IsVisible(Vertex const *vertex, Transaction const *transac
|
|||||||
// clang-format on
|
// clang-format on
|
||||||
});
|
});
|
||||||
|
|
||||||
if (useCache && n_processed >= FLAGS_delta_chain_cache_threashold) {
|
if (useCache && n_processed >= FLAGS_delta_chain_cache_threshold) {
|
||||||
auto &cache = transaction->manyDeltasCache;
|
auto &cache = transaction->manyDeltasCache;
|
||||||
cache.StoreExists(view, vertex, exists);
|
cache.StoreExists(view, vertex, exists);
|
||||||
cache.StoreDeleted(view, vertex, deleted);
|
cache.StoreDeleted(view, vertex, deleted);
|
||||||
@ -163,7 +163,7 @@ Result<bool> VertexAccessor::HasLabel(LabelId label, View view) const {
|
|||||||
// clang-format on
|
// clang-format on
|
||||||
});
|
});
|
||||||
|
|
||||||
if (useCache && n_processed >= FLAGS_delta_chain_cache_threashold) {
|
if (useCache && n_processed >= FLAGS_delta_chain_cache_threshold) {
|
||||||
auto &cache = transaction_->manyDeltasCache;
|
auto &cache = transaction_->manyDeltasCache;
|
||||||
cache.StoreExists(view, vertex_, exists);
|
cache.StoreExists(view, vertex_, exists);
|
||||||
cache.StoreDeleted(view, vertex_, deleted);
|
cache.StoreDeleted(view, vertex_, deleted);
|
||||||
@ -210,7 +210,7 @@ Result<std::vector<LabelId>> VertexAccessor::Labels(View view) const {
|
|||||||
// clang-format on
|
// clang-format on
|
||||||
});
|
});
|
||||||
|
|
||||||
if (useCache && n_processed >= FLAGS_delta_chain_cache_threashold) {
|
if (useCache && n_processed >= FLAGS_delta_chain_cache_threshold) {
|
||||||
auto &cache = transaction_->manyDeltasCache;
|
auto &cache = transaction_->manyDeltasCache;
|
||||||
cache.StoreExists(view, vertex_, exists);
|
cache.StoreExists(view, vertex_, exists);
|
||||||
cache.StoreDeleted(view, vertex_, deleted);
|
cache.StoreDeleted(view, vertex_, deleted);
|
||||||
@ -340,7 +340,7 @@ Result<PropertyValue> VertexAccessor::GetProperty(PropertyId property, View view
|
|||||||
// clang-format on
|
// clang-format on
|
||||||
});
|
});
|
||||||
|
|
||||||
if (useCache && n_processed >= FLAGS_delta_chain_cache_threashold) {
|
if (useCache && n_processed >= FLAGS_delta_chain_cache_threshold) {
|
||||||
auto &cache = transaction_->manyDeltasCache;
|
auto &cache = transaction_->manyDeltasCache;
|
||||||
cache.StoreExists(view, vertex_, exists);
|
cache.StoreExists(view, vertex_, exists);
|
||||||
cache.StoreDeleted(view, vertex_, deleted);
|
cache.StoreDeleted(view, vertex_, deleted);
|
||||||
@ -388,7 +388,7 @@ Result<std::map<PropertyId, PropertyValue>> VertexAccessor::Properties(View view
|
|||||||
// clang-format on
|
// clang-format on
|
||||||
});
|
});
|
||||||
|
|
||||||
if (useCache && n_processed >= FLAGS_delta_chain_cache_threashold) {
|
if (useCache && n_processed >= FLAGS_delta_chain_cache_threshold) {
|
||||||
auto &cache = transaction_->manyDeltasCache;
|
auto &cache = transaction_->manyDeltasCache;
|
||||||
cache.StoreExists(view, vertex_, exists);
|
cache.StoreExists(view, vertex_, exists);
|
||||||
cache.StoreDeleted(view, vertex_, deleted);
|
cache.StoreDeleted(view, vertex_, deleted);
|
||||||
@ -465,7 +465,7 @@ Result<std::vector<EdgeAccessor>> VertexAccessor::InEdges(View view, const std::
|
|||||||
// clang-format on
|
// clang-format on
|
||||||
});
|
});
|
||||||
|
|
||||||
if (useCache && n_processed >= FLAGS_delta_chain_cache_threashold) {
|
if (useCache && n_processed >= FLAGS_delta_chain_cache_threshold) {
|
||||||
auto &cache = transaction_->manyDeltasCache;
|
auto &cache = transaction_->manyDeltasCache;
|
||||||
cache.StoreExists(view, vertex_, exists);
|
cache.StoreExists(view, vertex_, exists);
|
||||||
cache.StoreDeleted(view, vertex_, deleted);
|
cache.StoreDeleted(view, vertex_, deleted);
|
||||||
@ -539,7 +539,7 @@ Result<std::vector<EdgeAccessor>> VertexAccessor::OutEdges(View view, const std:
|
|||||||
// clang-format on
|
// clang-format on
|
||||||
});
|
});
|
||||||
|
|
||||||
if (useCache && n_processed >= FLAGS_delta_chain_cache_threashold) {
|
if (useCache && n_processed >= FLAGS_delta_chain_cache_threshold) {
|
||||||
auto &cache = transaction_->manyDeltasCache;
|
auto &cache = transaction_->manyDeltasCache;
|
||||||
cache.StoreExists(view, vertex_, exists);
|
cache.StoreExists(view, vertex_, exists);
|
||||||
cache.StoreDeleted(view, vertex_, deleted);
|
cache.StoreDeleted(view, vertex_, deleted);
|
||||||
@ -587,7 +587,7 @@ Result<size_t> VertexAccessor::InDegree(View view) const {
|
|||||||
// clang-format on
|
// clang-format on
|
||||||
});
|
});
|
||||||
|
|
||||||
if (useCache && n_processed >= FLAGS_delta_chain_cache_threashold) {
|
if (useCache && n_processed >= FLAGS_delta_chain_cache_threshold) {
|
||||||
auto &cache = transaction_->manyDeltasCache;
|
auto &cache = transaction_->manyDeltasCache;
|
||||||
cache.StoreExists(view, vertex_, exists);
|
cache.StoreExists(view, vertex_, exists);
|
||||||
cache.StoreDeleted(view, vertex_, deleted);
|
cache.StoreDeleted(view, vertex_, deleted);
|
||||||
@ -635,7 +635,7 @@ Result<size_t> VertexAccessor::OutDegree(View view) const {
|
|||||||
// clang-format on
|
// clang-format on
|
||||||
});
|
});
|
||||||
|
|
||||||
if (useCache && n_processed >= FLAGS_delta_chain_cache_threashold) {
|
if (useCache && n_processed >= FLAGS_delta_chain_cache_threshold) {
|
||||||
auto &cache = transaction_->manyDeltasCache;
|
auto &cache = transaction_->manyDeltasCache;
|
||||||
cache.StoreExists(view, vertex_, exists);
|
cache.StoreExists(view, vertex_, exists);
|
||||||
cache.StoreDeleted(view, vertex_, deleted);
|
cache.StoreDeleted(view, vertex_, deleted);
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
#include "utils/flag_validation.hpp"
|
#include "utils/flag_validation.hpp"
|
||||||
|
|
||||||
// NOLINTNEXTLINE (cppcoreguidelines-avoid-non-const-global-variables)
|
// NOLINTNEXTLINE (cppcoreguidelines-avoid-non-const-global-variables)
|
||||||
DEFINE_VALIDATED_uint64(delta_chain_cache_threashold, 128,
|
DEFINE_VALIDATED_uint64(delta_chain_cache_threshold, 128,
|
||||||
"The threshold for when to cache long delta chains. This is used for heavy read + write "
|
"The threshold for when to cache long delta chains. This is used for heavy read + write "
|
||||||
"workloads where repeated processing of delta chains can become costly.",
|
"workloads where repeated processing of delta chains can become costly.",
|
||||||
{ return value > 0; });
|
{ return value > 0; });
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#include <gflags/gflags.h>
|
#include <gflags/gflags.h>
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
|
|
||||||
DECLARE_uint64(delta_chain_cache_threashold);
|
DECLARE_uint64(delta_chain_cache_threshold);
|
||||||
|
|
||||||
namespace memgraph::storage {
|
namespace memgraph::storage {
|
||||||
|
|
||||||
|
@ -202,7 +202,7 @@ startup_config_dict = {
|
|||||||
"",
|
"",
|
||||||
"The path to mappings that describes aliases to callables in cypher queries in the form of key-value pairs in a json file. With this option query module procedures that do not exist in memgraph can be mapped to ones that exist.",
|
"The path to mappings that describes aliases to callables in cypher queries in the form of key-value pairs in a json file. With this option query module procedures that do not exist in memgraph can be mapped to ones that exist.",
|
||||||
),
|
),
|
||||||
"delta_chain_cache_threashold": (
|
"delta_chain_cache_threshold": (
|
||||||
"128",
|
"128",
|
||||||
"128",
|
"128",
|
||||||
"The threshold for when to cache long delta chains. This is used for heavy read + write workloads where repeated processing of delta chains can become costly.",
|
"The threshold for when to cache long delta chains. This is used for heavy read + write workloads where repeated processing of delta chains can become costly.",
|
||||||
|
Loading…
Reference in New Issue
Block a user