Employee structure: {empID, empName, department, salary, location}
Key: empID
Indexes - Total 5 indexes: {empName} {salary} {location} {department, location} {empName, department, salary}
Rich queries:
- Get employee by ID (this is regular query operation which also works in LevelDB)
- Get employees by name (Ad hoc query)
- Get employees whose salary is greater than X amount (Parameterized query)
- Get employees whose employee IDs are in given range (this is regular query operation which also works in LevelDB)
- Pagination: Get 3 employees at a time
Refer scripts/install_instantiate_invoke_couchdb_java_chaincode.sh for CLI peer chaincode commands
Queries - Contact at '[email protected]'