2017 © Pedro Peláez
 

library cpimport-bundle

Symfony Bundle - Use file watchers with MariaDb Columnstore CpImport utility

image

bentools/cpimport-bundle

Symfony Bundle - Use file watchers with MariaDb Columnstore CpImport utility

  • Thursday, April 12, 2018
  • by bpolaszek
  • Repository
  • 1 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 113 % Grown

The README.md

CpImport Bundle

MariaDb ColumnStore is a very powerful, column-oriented MySQL storage, powerful for analytics and Big Data., (*1)

It has the drawback of extremely slow write operations, but comes with cpimport, a binary that can load CSV files with millions of rows into the table of your choice, in a few seconds., (*2)

This Symfony bundle enables a file watcher that will look into a directory, pick up new CSV files when they come, run cpimport and delete them., (*3)

[!IMPORTANT]
This repository is no longer maintained and may be removed in a near future. You may consider creating a fork if you still require it., (*4)

Installation

composer require bentools/cpimport-bundle:1.0.x-dev, (*5)

Configuration

Add the bundle to your kernel. Then, map your directories to database/tables like this:, (*6)

# config/packages/cpimport.yaml (or app/config.yml in Symfony 3)

cpimport:
    cpimport_bin: /usr/local/mariadb/columnstore/bin/cpimport
    watch:
        /path/to/csv_sales:
            database: my_shop
            table: sales_day
            options:
                delimiter: ','
                enclosure: '"'
                timeout: 60

Usage

To automatically process new files in configured directories:, (*7)

php bin/console cpimport:watch

To manually process a CSV file through cpimport:, (*8)

php bin/console cpimport:run my_shop sales_day path/to/file.csv --delimiter=','

The Versions

12/04 2018

dev-master

9999999-dev

Symfony Bundle - Use file watchers with MariaDb Columnstore CpImport utility

  Sources   Download

MIT

The Requires

 

The Development Requires

php symfony file watcher mariadb columnstore cpimport