Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion auction-server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "auction-server"
version = "0.32.1"
version = "0.32.2"
edition = "2021"
license-file = "license.txt"

Expand Down
6 changes: 3 additions & 3 deletions auction-server/src/kernel/analytics_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ pub struct ClickhouseInserter<T> {
pub sender: mpsc::Sender<T>,
}

const CHANNEL_SIZE: usize = 1000;
const CHANNEL_SIZE: usize = 10_000;
const DURATION_PERIOD: Duration = Duration::from_secs(1);
const MAX_ROWS: u64 = 100;
const MAX_BYTES: u64 = 1_048_576;
const MAX_ROWS: u64 = 10_000;
const MAX_BYTES: u64 = 10 * 1_048_576; // 10 MB

impl<T: Row + Serialize + Send + Sync + 'static> ClickhouseInserter<T> {
async fn run(client: clickhouse::Client, table_name: String, mut rx: mpsc::Receiver<T>) {
Expand Down
Loading