Hi fellow developers,
I’m using mongodb with python using pymongo library. My usecase takes advantage of TTL indexes provided by mongo. But, I’ve a scenario where I want to update the ‘expireAfterSeconds’ time using collMod using Pymongo for which I cannot find anything on pymongo docs. If anyone could point in the right direction that would be really useful. Here’s the mongo db docs, and javascript implementation for the same.
Also, if anyone has ever used this feature of updating index using ‘collMod’ how bad is the performance hit for like 100,000 documents.