Imtiaz Mangerah
04/30/2024, 1:52 PMMartin
04/30/2024, 3:36 PMImtiaz Mangerah
04/30/2024, 3:41 PMkeys.create
and not keys.generate_scoped_search_key
(python API).
I assume this is why there is ~6M keys, most of which are expired.
I have found a workaround, I noticed the ID's are sequential so I have scripted a sequential delete of a range of keys to recover. But deleting 6M API keys is estimated to take ~24 hours - even with 16 workers.
Is there any way of speeding this up?Imtiaz Mangerah
04/30/2024, 3:42 PMKishore Nallan
04/30/2024, 4:27 PMJason Bosco
04/30/2024, 4:56 PMGET /keys
to fetch all keys, you could have a simple counter in a loop, that does GET /keys/0
, GET /keys/1
, etc check the expires_at and delete it if it is expired.Jason Bosco
04/30/2024, 4:56 PMautodelete
for that many number of keysImtiaz Mangerah
04/30/2024, 4:59 PM