Companion code for the Aerospike Summit 2022 roadshow presentation "Building with Batch Writes in Aerospike Database 6".
- Aerospike Database 6.0
- Python 3.7+
- Aerospike Python Client >= 7.0.0
The presentation mentions which scripts are being run for each slide. The sequence is as follows:
fill.py
to fill the database with sample data using single and batch writesbatch-reads.py
to demonstrate batch reading of records and batch read-operations over multiple recordsnew-score.py
to demonstrate updating records with read and write expressionsupdate-leaderboard.py
to demonstrate rolling up staged personal-best scores into top scores with batch reads and then batch writes
All the scripts support the following options:
optional arguments:
--help Displays this message.
-U <USERNAME>, --username <USERNAME>
Username to connect to database.
-P <PASSWORD>, --password <PASSWORD>
Password to connect to database.
-h <ADDRESS>, --host <ADDRESS>
Address of Aerospike server.
-p <PORT>, --port <PORT>
Port of the Aerospike server.
-n <NS>, --namespace <NS>
Namespace name to use
-s <SET>, --set <SET>
Set name to use.
--services-alternate Use services alternate