Hi Devs,

Right now it is the validity period which is getting stored along with the
tokens.

So in order to expire a token, a calculation is needed during expiry tasks.

When there a lot of tokens, this becomes a bottleneck since the database
indexes are not applicable.

But if the expiry timestamps are stored in the database, during the expiry
tasks calculations are not needed and therefore the indexes are applicable.
This should significantly improve the task execution time.

-- 
*Best Regards*

*Rushmin Fernando*
*Technical Lead*

WSO2 Inc. <http://wso2.com/> - Lean . Enterprise . Middleware

mobile : +94775615183
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to