Skip to content

Commit

Permalink
prefetch necessary tables before loading (ydb-platform#10809)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmorozov333 authored Oct 24, 2024
1 parent 0bf6487 commit 2f985f5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ydb/core/tx/columnshard/columnshard__init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,13 @@ bool TTxInit::Precharge(TTransactionContext& txc) {
ready = ready & Schema::Precharge<Schema::LongTxWrites>(db, txc.DB.GetScheme());
ready = ready & Schema::Precharge<Schema::BlobsToKeep>(db, txc.DB.GetScheme());
ready = ready & Schema::Precharge<Schema::BlobsToDelete>(db, txc.DB.GetScheme());
ready = ready & Schema::Precharge<Schema::BlobsToDeleteWT>(db, txc.DB.GetScheme());
ready = ready & Schema::Precharge<Schema::IndexColumns>(db, txc.DB.GetScheme());
ready = ready & Schema::Precharge<Schema::InsertTable>(db, txc.DB.GetScheme());
ready = ready & Schema::Precharge<Schema::IndexPortions>(db, txc.DB.GetScheme());
ready = ready & Schema::Precharge<Schema::IndexCounters>(db, txc.DB.GetScheme());
ready = ready & Schema::Precharge<Schema::SharedBlobIds>(db, txc.DB.GetScheme());
ready = ready & Schema::Precharge<Schema::BorrowedBlobIds>(db, txc.DB.GetScheme());

ready = ready && Schema::GetSpecialValueOpt(db, Schema::EValueIds::CurrentSchemeShardId, Self->CurrentSchemeShardId);
ready = ready && Schema::GetSpecialValueOpt(db, Schema::EValueIds::LastSchemaSeqNoGeneration, Self->LastSchemaSeqNo.Generation);
Expand Down

0 comments on commit 2f985f5

Please sign in to comment.