Add bloom filter index on news

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-01-25 15:15:40 +00:00
parent 29b7966dfe
commit bcac24bc58
2 changed files with 3 additions and 2 deletions

View File

@@ -112,7 +112,7 @@ async fn handle_backfill_message(
if !job.is_finished() {
job.abort();
}
job.await.unwrap_err();
let _ = job.await;
}
let app_config = app_config.clone();
@@ -158,7 +158,7 @@ async fn handle_backfill_message(
if !job.is_finished() {
job.abort();
}
job.await.unwrap_err();
let _ = job.await;
}
}

View File

@@ -50,6 +50,7 @@ CREATE TABLE IF NOT EXISTS qrust.news (
source Nullable(String),
summary Nullable(String),
url Nullable(String),
INDEX index_symbols symbols TYPE bloom_filter()
)
ENGINE = ReplacingMergeTree()
PARTITION BY toYYYYMM(time_created)