With OpenDJ3.0, about 3 millions entries are saved. the entries I saved actually is tokens which has ttl (aka expiry time).
What I'm doing is try to schedule a cron job to periodically search out those expired tokens, and delete them.
I'm using OpenDJ sdk SimplePagedResultsControl to perform a paged search, pageSize=1000, timelimit=60 seconds, search filter is (token-ttl<=20170724234636.576Z)
The search user I'm using is the default "cn=Directory Manager", with default resource limit settings. BTW, the entry-limit for token-ttl index I set is 20000
But in case of two many tokens matched the filter, the search took forever to return.
I tried the ldapsearch utility, the same result.
Any suggestions ?
Thanks