I'm working on a very large production system which needs to store many, many small segments of similar, text-like data (think alphanumeric with many similar substrings).
If we gzip each segment individually, we get a terrible 80% compression ratio. If we compress a few million rows together, we get a 8% compression ratio. I imagine the problem is gzip can't intrinsically know that each segment is similar, causing it to rebuild some virtually identical index or key table (or something) for each segment -- whereas for the combined compression, it only has to build this once.
Is there another algorithm we can use? Something that we can 'teach' about the general syntax/contents of the data we intend to compress? Given the scale of the system, it would have to be a very mature algorithm, which is disheartening because my googling could come up with nothing...
We use Java. And oracle on the backend.
If we gzip each segment individually, we get a terrible 80% compression ratio. If we compress a few million rows together, we get a 8% compression ratio. I imagine the problem is gzip can't intrinsically know that each segment is similar, causing it to rebuild some virtually identical index or key table (or something) for each segment -- whereas for the combined compression, it only has to build this once.
Is there another algorithm we can use? Something that we can 'teach' about the general syntax/contents of the data we intend to compress? Given the scale of the system, it would have to be a very mature algorithm, which is disheartening because my googling could come up with nothing...
We use Java. And oracle on the backend.