Urgent.News

What's breaking now, across thousands of outlets.

Tech

Feeding the OLAP beast: ClickHouse massive bulk ingestion steps.

Feeding the OLAP beast: ClickHouse massive bulk ingestion steps. ClickHouse is a columnar beast, but treating it like MySQL by inserting row-by-row will bring your cluster to its knees. ClickHouseBulkStep packages optimal bulk buffering into a reusable step. Here is how you use ClickHouseBulkStep & OLAP Pipelines in a production pipeline with wpipe-steps : from wpipe import Pipeline from…

Feeding the OLAP beast: ClickHouse massive bulk ingestion steps. ClickHouse is a columnar powerhouse, but attempting to insert data row-by-row will overwhelm your cluster. ClickHouseBulkStep provides a pre-packaged solution, allowing you to run it as a reusable step in your pipeline. Utilize ClickHouseBulkStep and OLAP Pipelines with wpipe-steps to create an efficient production pipeline.

From the wpipe import Pipeline and from wpipe_steps.database import ClickHouseBulkStep, you can assemble your pipeline with a single command.

To insert a sample batch of telemetry data, create a list of dictionaries containing sensor IDs, temperatures, and timestamps. Run the pipeline with the sample batch, specifying the desired database, table, host, and keys for the data and response. Once the insertion is complete, check the result, which will return the total count of records successfully inserted into ClickHouse.

With 1,960 cataloged steps, including support for Redis, ClickHouse, MySQL, WAF, S3, Docker, and local HuggingFace AI, wpipe-steps offers a flexible and powerful solution for developers. Its lazy-loading imports ensure sub-100ms startup times, while the clean .as_step() factory interface simplifies the process of creating reusable steps. Explore the full repository on GitHub for more information.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Decoupled Distributed Pipelines: Remote Worker Registration in wpipe

Decoupled Distributed Pipelines: Remote Worker Registration in wpipe Building data pipelines that scale across multiple servers or ephemeral containers often leads to brittle, tightly-coupled…

  • wpipe framework integrates distributed coordination into core pipeline engine
  • Pipeline registers with central orchestrator using workerregister method
  • Falls back to local execution if orchestrator unavailable due to connectivity issues

Fool's Expertise

  • Huang dismissed AI doomerism, but missed chance to explain Hinton's wrong predictions
  • Hinton's mistake stemmed from making claims beyond his domain expertise
  • Consulting experts from various fields crucial to avoid "Fool's Expertise"

More from Monday 28 September →