Giter Site home page Giter Site logo

stream-tests's Introduction

Stream tests

CSV Setup

Generate a .csv of 100000 rows

$ ./generate-csv.sh

MySQL Docker Setup

$ docker run --name mysql -e MYSQL_ROOT_PASSWORD=password -e MYSQL_ROOT_HOST="%" --restart on-failure -d -p 3306:3306 mysql/mysql-server:5.7

Connect to database, create a schema named test and run the following commands in the test schema:

create table data
(
    uuid VARCHAR(36) not null,
    number1 int default 1 not null,
    number2 int default 2 not null,
    number3 int default 3 not null,
    number4 int default 4 not null,
    number5 int default 5 not null,
    number6 int default 6 not null,
    number7 int default 7 not null,
    number8 int default 8 not null
);

create unique index data_uuid_uindex
    on data (uuid);

alter table data
    add constraint data_pk
        primary key (uuid);

create procedure insertIntoData(p1 int)
begin
    set @x = 0;
    repeat
        insert into data (uuid)
        values (uuid());
        set @x = @x + 1;
    until @x > p1 end repeat;
end


call insertIntoData(100000)

stream-tests's People

Contributors

jcbinet avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.