mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-07 06:53:09 -06:00
More comments on the choice of JSON storage
This commit is contained in:
parent
c7a2af97eb
commit
15e35062b9
|
|
@ -369,7 +369,10 @@ CREATE TABLE IF NOT EXISTS event_json (
|
|||
event_nid bigint NOT NULL PRIMARY KEY,
|
||||
-- The JSON for the event.
|
||||
-- Stored as TEXT because this should be valid UTF-8.
|
||||
-- Not stored as a JSONB because we always just pull the entire event.
|
||||
-- Not stored as a JSONB because we always just pull the entire event
|
||||
-- so there is no point in postgres parsing it.
|
||||
-- Not stored as JSON because we already validate the JSON in the server
|
||||
-- so there is no point in postgres validating it.
|
||||
-- TODO: Should we be compressing the events with Snappy or DEFLATE?
|
||||
event_json text NOT NULL
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue