Improve cache performance by compressing records (#14833)

* Utils to compress/decompress data
Gzip was chosen because we want smaller data but quick algorithm since this will be ran for every request

* Compress system cache

* Decompress system cache

* Set/Get compressed cache for individual requests

* Switch from gzip to snappy, use json compression too

* Fix cache exp set/get

* Remove unused import

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
This commit is contained in:
José Varela
2022-08-04 22:35:27 +01:00
committed by GitHub
parent 1300f5c3de
commit cc343fdf91
9 changed files with 203 additions and 14 deletions

View File

@@ -1,3 +1,4 @@
export { compress, decompress } from './compress';
export * from './abbreviate-number';
export * from './add-field-flag';
export * from './adjust-date';