Open davidwatkins73 opened 3 years ago
user_preference/value
table/col
user_preference
table at 2048 chars, but use truncateMiddle(....)
to ensure the names aren't too bigaccess_log
table. However it could be painful to parse and get entity types/names from the data held in there
e.g.
with history as (
select * from access_log
where user_id = 'david.watkins@db.com'
and state not like '%|%'
order by created_at desc
offset 0 rows
FETCH NEXT 100 ROWS ONLY
)
select distinct state, params
from history
All new tables (lots of work!)
I'd start with Option 1, but consider the worst case scenarios, so we may still need some sort of limiting (perhaps on the server side)
Currently the recently viewed list is persisted in the browsers LocalStorage. This occasionally causes problem when users change browsers/machines. Look to store this list in user prefs instead.