https://github.com/sloppycoder/mongofts
MongoDB Text index tests
https://github.com/sloppycoder/mongofts
Last synced: 8 months ago
JSON representation
MongoDB Text index tests
- Host: GitHub
- URL: https://github.com/sloppycoder/mongofts
- Owner: sloppycoder
- Created: 2020-09-11T17:44:54.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-15T16:23:06.000Z (over 5 years ago)
- Last Synced: 2025-02-28T20:02:11.062Z (over 1 year ago)
- Language: Python
- Size: 46.9 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## test MongoDB text index
```
# install mongo commnity edition
mongo < user.js
# enable security, restart mongod
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
# generate 10000 accounts, which about 1000 transactions per account on average
python gen_rand_trans.py -n 10000 --avg 1000
mongo -u dev -p dev dev < index.js
py.test benchmark.py
# should show some benchmark numbers
```