Knowledge Management

How to restric a kvstore not to allow more than 50000 records?

sesharao92
Explorer

I have a kvstore in my application which should accept max 50000 records. I am using kvstore rest api for ingesting the data.
Could you please provide me a way to restrict the ingestion to certain count.

Tags (1)
0 Karma

manjunathmeti
Champion

You can use kvstore Rest API to get count of existing records and restrict data insertion if existing count is = 50000.

https://localhost:8089/servicesNS/nobody/<app>/storage/collections/data/<collection_name>?fields=_ke...
0 Karma
.conf21 Now Fully Virtual!
Register for FREE Today!

We've made .conf21 totally virtual and totally FREE! Our completely online experience will run from 10/19 through 10/20 with some additional events, too!