Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It is clickhouse and what about bulk insert wrap method? #17

Open
klobastov opened this issue Aug 17, 2018 · 4 comments
Open

It is clickhouse and what about bulk insert wrap method? #17

klobastov opened this issue Aug 17, 2018 · 4 comments

Comments

@klobastov
Copy link

No description provided.

@klobastov klobastov changed the title It is clickhouse and what about builk insert ? It is clickhouse and what about bulk insert ? Aug 17, 2018
@klobastov klobastov changed the title It is clickhouse and what about bulk insert ? It is clickhouse and what about bulk insert wrap method? Aug 17, 2018
@argayash
Copy link
Member

@4ppleboy
For bulk insert (from file) you can use smi2/phpclickhouse directly.

@mochalygin
Copy link
Member

@argayash
Коля, а в чём там проблема с пачками, я уже не помню?
Может как-то всё таки можно преодолеть? Как насчёт по пиву и подумать?

@argayash
Copy link
Member

@mochalygin

доктрина "из коробки" не умеет аггрегировать инсерты
основная проблема заключается в выборе элегантного способами реализовать вставку пачками)
однако, только демон-вотчер может хоть как-то гарантировать запись в кликхаус.

@demenkov
Copy link

/**
 * Class ClickHouseConnection.
 * Add possibility to get \ClickHouseDB\Client.
 */
class ClickHouseConnection extends \FOD\DBALClickHouse\ClickHouseConnection
{
    /**
     * @return Client
     */
    public function getRawClient(): Client
    {
        return $this->smi2CHClient;
    }
}

@argayash may be add possibility to get raw client, for using the same connection for bulk operations?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants