You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
im splitting a dataset into multiple databases (each for one month) all containing basically the same table names
and structure, serving them in one datasette call with unique database names. In metadata.json the facets are
defined per database. This means that only the database name matching the metadata.json shows the defined
facets..
Other than copy&pasting the facets for each "database" name into metadata.json again, my only solution was
to hook the get_metadata function via plugin and extend the metadata per-database served.
Wouldnt it be good to have a global "facets" option in metadata.json so one could define the same facets for
all databases served (given the fact that tables are the same)?
Or maybe there is another, more elegant solution to this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
hi there,
im splitting a dataset into multiple databases (each for one month) all containing basically the same table names
and structure, serving them in one datasette call with unique database names. In metadata.json the facets are
defined per database. This means that only the database name matching the metadata.json shows the defined
facets..
Other than copy&pasting the facets for each "database" name into metadata.json again, my only solution was
to hook the get_metadata function via plugin and extend the metadata per-database served.
Wouldnt it be good to have a global "facets" option in metadata.json so one could define the same facets for
all databases served (given the fact that tables are the same)?
Or maybe there is another, more elegant solution to this?
Beta Was this translation helpful? Give feedback.
All reactions