chupdate

command module
v0.0.0-...-c3b74a3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

README

chupdate

clickhouse update middleware

When to use

  1. You use ReplacingMergeTree engine family
  2. You need updates in CH ( and reasonable way to do that is to use insert new row and select with LIMIT BY )
  3. When sending updates to CH in proper way is complicated due to client software limitations ( you don't want to make many changes there)
  4. You need to work with one CH master
Installation
Inside

Chupdate just simply parse incoming queries and search for updates, when it found it we just make an addiotional select, get actual information and insert full new row. Also updercover we chupdate keeps connection pool to CH for speed up tasks.

Insired by clickhouse-bulk

Metrics

#TODO

Restriction
  1. Target tables must have version column with name "time". Now it is hardcoded ( #TODO )
  2. Queries must include full qualified table names ( with database name )

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
tests
testing command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL