There are some queries that can probably be optimized, including by joining tables instead of running multiple selects.
Other places, we probably don't need to query the database every request to see if there are bad paths, or new shares shared with the user, etc.
There are some queries that can probably be optimized, including by joining tables instead of running multiple selects.
Other places, we probably don't need to query the database every request to see if there are bad paths, or new shares shared with the user, etc.