Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rhedgpeth/skysql_htap_demo
Create a schema and load data into MariaDB HTAP.
https://github.com/rhedgpeth/skysql_htap_demo
bash bash-script htap hybrid-database mariadb mariadb-columnstore mariadb-database mariadb-htap mariadb-innodb mariadb-server mariadb-skysql sql
Last synced: 7 days ago
JSON representation
Create a schema and load data into MariaDB HTAP.
- Host: GitHub
- URL: https://github.com/rhedgpeth/skysql_htap_demo
- Owner: rhedgpeth
- License: mit
- Created: 2020-03-30T20:15:03.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-03-31T00:15:34.000Z (over 4 years ago)
- Last Synced: 2024-10-12T02:41:36.154Z (about 1 month ago)
- Topics: bash, bash-script, htap, hybrid-database, mariadb, mariadb-columnstore, mariadb-database, mariadb-htap, mariadb-innodb, mariadb-server, mariadb-skysql, sql
- Language: Shell
- Homepage: https://mariadb.com/products/skysql/get-started/
- Size: 7.66 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [MariaDB](http://www.mariadb.com) SkySQL Demo Data
The purpose of this repository is to supply the schema and data to be used with a MariaDB [Hybrid Transactional/Analytical Processing (HTAP)](https://mariadb.com/docs/solutions/htap/) database instance.
This data can be used within a local MariaDB HTAP instance or one hosted in [MariaDB SkySQL](https://mariadb.com/products/skysql/docs/).
## Instructions:
Go through the following steps to create the schema, load data, and set up replication for your MariaDB HTAP instance.
1. Clone this repository.
```
$ git clone https://github.com/rhedgpeth/skysql_htap_demo.git
```2. Execute the following command with your database instance information.
```
$ ./create_and_load.sh
```for example
```
./create_and_load.sh sky0001355.mdb0001390.db.skysql.net 5001 DB00009999 *******
```3.) Execute the following command on your MariaDB SkySQL database instance to set up replication.
```
SELECT SET_HTAP_REPLICATION('flights','travel','travel_history');
```That's it! The following will be created, loaded, and configured to replicate (travel.flights -> travel_history.flights).
- [travel](schema/idb_schema.sql#L1) (database)
- [airlines](schema/idb_schema.sql#L5) (InnoDB table): 17 rows
- [airports](schema/idb_schema.sql#L11) (InnoDB table): 342 rows
- [flights](schema/idb_schema.sql#L21) (InnoDB table): 0 rows
- [travel_history](schema/cs_schema.sql#L1) (database)
- [flights](schema/cs_schema.sql#L5) (ColumnStore table): 679996 rows## More resources
- [Sign up for MariaDB SkySQL](https://mariadb.com/products/skysql/get-started/)
- [MariaDB SkySQL Documentation](https://mariadb.com/products/skysql/docs/)