Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

Offline compaction

Avatar

Level 4

Hi,

do you know if performing offline compaction from time to time in production environment can increase performance besides reducing disk occupation? If yes could you also explain why you gain performance?

Thank you,

Stefano

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi Stefano,

this depends on the persistence you use. While on TarMK (given enough RAM do use mmap) the performance impact is quite small, it can be pretty huge on MongoMK because there the storage is structured differently. Holding all the (unused) versions impacts performance due to the amount of data transferred over the network or due to inefficient use of Mongo indexes and storage/RAM.

HTH,
Jörg

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

Hi Stefano,

this depends on the persistence you use. While on TarMK (given enough RAM do use mmap) the performance impact is quite small, it can be pretty huge on MongoMK because there the storage is structured differently. Holding all the (unused) versions impacts performance due to the amount of data transferred over the network or due to inefficient use of Mongo indexes and storage/RAM.

HTH,
Jörg

Avatar

Level 4

We're using TarMK. So do you recommend to run offline compaction from time to time or daily online compaction is enough?

 

Thank you,

Stefano