https://github.com/lefred/restaurants-mysql-ds
Generate Fake JSON documents for the restaurant collection using MySQL X Protocol
https://github.com/lefred/restaurants-mysql-ds
Last synced: 6 months ago
JSON representation
Generate Fake JSON documents for the restaurant collection using MySQL X Protocol
- Host: GitHub
- URL: https://github.com/lefred/restaurants-mysql-ds
- Owner: lefred
- Created: 2023-12-15T08:58:05.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T09:02:38.000Z (over 2 years ago)
- Last Synced: 2024-12-29T21:26:56.435Z (over 1 year ago)
- Language: Python
- Size: 268 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# restaurants-mysql-ds
Generate Fake JSON documents for the restaurant collection using MySQL X Protocol
## Import JSON
Using MySQL Shell:
```
JS > session.createSchema('docstore')
JS > \u docstore
Default schema `docstore` accessible through db.
JS > util.importJson('restaurants.json', {convertBsonOid: true})
Importing from file "restaurants.json" to collection `docstore`.`restaurants`
in MySQL Server at 10.0.1.249:33060
.. 25359.. 25359
Processed 15.60 MB in 25359 documents in 0.9856 sec (25.36K documents/s)
Total successfully imported documents 25359 (25.36K documents/s)
```