Signed-off-by: Mike Rylander <mrylander@gmail.com>
attr TEXT NOT NULL REFERENCES config.record_attr_definition (name) ON DELETE CASCADE,
value TEXT NOT NULL
);
-CREATE INDEX metabib_sorter_source_idx ON metabib.record_sorter (source);
+CREATE INDEX metabib_sorter_source_idx ON metabib.record_sorter (source); -- we may not need one of this or the next ... stats will tell
+CREATE INDEX metabib_sorter_s_a_idx ON metabib.record_sorter (source, attr);
CREATE INDEX metabib_sorter_a_v_idx ON metabib.record_sorter (attr, value);