This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Consider storing events as pickled binary blobs in the DB #12959
Labels
A-Database
DB stuff like queries, migrations, new/remove columns, indexes, unexpected entries in the db
T-Enhancement
New features, changes in functionality, improvements in performance, or user-facing enhancements.
Folklore has it that Synapse spends a lot of time parsing json from text columns in the DB. It might be quicker to store and load a pickled version of the event. The event content is already an opaque blob AFAIK; I'm not sure we'd lose much by making an opaque binary blob rather than an opaque text blob. The first step would be to make some kind of vaguely representative benchmark and see how long depickling takes compared to parsing.
The text was updated successfully, but these errors were encountered: