How we can reduce the size of cache.dat file? Even after deleting the globals of a particular database from management portal size of its cache.dat file is not reduced.
CACHE.DAT or IRIS.DAT, can only grow during normal work. But you can shrink it manually. But it is not as easy as it maybe sounds. And depends on version which you use, only past few versions were added with the compact tool. On very old versions you have to copy data from old database to thew new one.
You need to do these three steps in order:
In can be done via ^DATABASE utility or in management portal.
This is the way to do it, but make sure you are on a version where this won't cause problems. See:
https://www.intersystems.com/support-learning/support/product-news-alert...
https://www.intersystems.com/support-learning/support/product-news-alert...
https://www.intersystems.com/support-learning/support/product-news-alert...
CACHE.DAT or IRIS.DAT, can only grow during normal work. But you can shrink it manually. But it is not as easy as it maybe sounds. And depends on version which you use, only past few versions were added with the compact tool. On very old versions you have to copy data from old database to thew new one.
You can read my articles, about internal structure of CACHE.DAT, just to know what is this inside. And about database with visualization, where you can see how to compact database, and how it actually works.