[
https://issues.apache.org/jira/browse/SLING-13307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18151429#comment-18151429
]
Julian Reschke commented on SLING-13307:
----------------------------------------
After some brainstorming:
- we will add support for a new path based index (paging happens based on path
which is more stable
- we will keep the current paging code as a safety net and to decouple Oak
changes from RR changes
- selection of the behavior will be done based on system property (not OSGi, we
already have too many switches we can'r get rid of)
Regularly rebuilding the cache will remain an issue (it would resolve doubts on
event delivery), but that'll an orthogonal change.
> Resource Resolver: improve alias and vanity path caching / handling
> -------------------------------------------------------------------
>
> Key: SLING-13307
> URL: https://issues.apache.org/jira/browse/SLING-13307
> Project: Sling
> Issue Type: Wish
> Components: ResourceResolver
> Reporter: Julian Reschke
> Priority: Major
>
> Issues with Resource Resolver alias cache
> - once initialized, the cache is treated as a complete view over all aliases
> in the repo
> - cache init can result in incorrect view due how JCR queries work (for
> instance, incomplete or stale index, see
> https://issues.apache.org/jira/browse/SLING-13284)
> - Events received during cache init may be incomplete (best effort in JCR)
> - not using the cache (Osgi config) isn't really an option due to slowness
> (https://issues.apache.org/jira/browse/SLING-9535)
> Why different from vanity paths?
> - vanity path cache is (can be) size limited
> - lookup of vanity paths "fast" anyway
> Potential improvements:
> - re-build the cache regularly, making it "eventually consistent"
> - other ideas?
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)