Metabase version: 0.48.6
DB: PostgreSQL
Scenario: we have a frequently updated table and would like to see new values in filters (dropdown, field values) ASAP (within minutes, <5 min).
- Proposed solutions suggest manually configuring scheduler, but the update frequency is limited to hours (too long).
- We don't mind more queries to the DB.
Issue: creating model based of such table and linking dropdown filter directly works fine. But when using linked filters the dropdown values aren't updated for dependent filters. (see example below)
Example:
- database my_table with two columns - "category_parent", "category_child"
- corresponding metabase's model my_model (created with SQL query
select * from my_table
) - dashboard with two Dropdown Field Value filters.
- First filter is based of my_model's column "category_parent".
- Second is linked to the first one, and presents values from "category_child"
- Insert some data:
- parentvalue1, childvalueA
- parentvalue2, childvalueB
- parentvalue2, childvalueC
- Check dropdowns
- first dropdown contains parentvalue1, parentvalue2
- second dropdown contains childvalueA for parentvalue1 and childvalueB, childvalueC for parentvalue 2
- Insert single row
- parentvalue2, childvalueX
- check second dropdown with parentvalue2 seleted
Expected behavior: dropdown must contain childvalueX
Actual behavior: it doesn't. Value appears only after field-value rescanning
Notes:
- New rows are visible when viewing my_model right away
- New values are available right away if filters aren't linked
- metabase_fieldvalues contains "old" values for filter unless field-value rescanning is triggered