CREATE TABLE observation
(
id bigserial NOT NULL,
data jsonb,
stream_id bigint,
featureofinterest_id bigint,
CONSTRAINT observation_pkey PRIMARY KEY (id),
CONSTRAINT fk_datastream FOREIGN KEY (stream_id)
REFERENCES datastream (id) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE CASCADE,
CONSTRAINT fk_featureofinterest FOREIGN KEY (featureofinterest_id)
REFERENCES featureofinterest (id) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE CASCADE
)
WITH (
OIDS=FALSE
);
(with @tomvantilburg at OSGeo.org codesprint Bonn) wondering: we see no time-field nor index on time in
observationtable.Are time fields within the
jsonbdatafield? How would this impact performance with queries on timeranges e.g.?