Bookmark optimization
When bookmarks were moved to a separate table, the checking for them was preloading all bookmarks for user and filtering on the application side, I 'fixed' it by querying the database for one bookmark for every view render, which is not great either.
The solution I have in mind is to preload bookmarks for activities, like we do with objects, but I am not sure this is the best approach