[
https://issues.apache.org/jira/browse/SLING-12879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18112688#comment-18112688
]
Jan Stettler edited comment on SLING-12879 at 9/8/26 12:01 PM:
---------------------------------------------------------------
So the problem is:
"resource.resolver.optimize.alias.resolution": "true"
"resource.resolver.alias.cache.in.background": "false"
The system starts very very slow - takes 2h
"resource.resolver.optimize.alias.resolution": "true"
"resource.resolver.alias.cache.in.background": "true"
The system starts fast but indexing and cache creation - takes 2h
"resource.resolver.optimize.alias.resolution": "false"
"resource.resolver.alias.cache.in.background": "false"
The system is - while rendering the page is very slow
normal page has 5-7 seconds for rendering - because the creation of the menu -
lot of resources.
The search in CRX
SELECT [sling:alias] FROM [nt:base] WHERE NOT isdescendantnode('/jcr:system')
AND [sling:alias] IS NOT NULL AND FIRST([sling:alias]) >=
'5-misure-cybersecurity' ORDER BY FIRST([sling:alias])
takes
!image-2026-09-08-13-34-48-536.png!
while
SELECT [sling:alias] FROM [nt:base] WHERE NOT isdescendantnode('/jcr:system')
AND [sling:alias] IS NOT NULL AND FIRST([sling:alias]) >= 'vostra-previdenza'
ORDER BY FIRST([sling:alias])
takes
!image-2026-09-08-13-55-36-085.png!
The logs I will add soon
was (Author: JIRAUSER314579):
So the problem is:
"resource.resolver.optimize.alias.resolution": "true"
"resource.resolver.alias.cache.in.background": "false"
The system starts very very slow - takes 2h
"resource.resolver.optimize.alias.resolution": "true"
"resource.resolver.alias.cache.in.background": "true"
The system starts fast but indexing and cache creation - takes 2h
"resource.resolver.optimize.alias.resolution": "false"
"resource.resolver.alias.cache.in.background": "false"
The system is - while rendering the page is very slow
normal page has 5-7 seconds for rendering - because the creation of the menu -
lot of resources.
The search in CRX
SELECT [sling:alias] FROM [nt:base] WHERE NOT isdescendantnode('/jcr:system')
AND [sling:alias] IS NOT NULL AND FIRST([sling:alias]) >=
'5-misure-cybersecurity' ORDER BY FIRST([sling:alias])
takes
!image-2026-09-08-13-34-48-536.png!
while
SELECT [sling:alias] FROM [nt:base] WHERE NOT isdescendantnode('/jcr:system')
AND [sling:alias] IS NOT NULL AND FIRST([sling:alias]) >= 'vostra-previdenza'
ORDER BY FIRST([sling:alias])
takes
!image-2026-09-08-13-55-36-085.png!
> ResourceResolver: add option to run alias initializer in background
> -------------------------------------------------------------------
>
> Key: SLING-12879
> URL: https://issues.apache.org/jira/browse/SLING-12879
> Project: Sling
> Issue Type: Sub-task
> Components: ResourceResolver
> Reporter: Julian Reschke
> Assignee: Julian Reschke
> Priority: Major
> Fix For: Resource Resolver 1.12.12, Resource Resolver 2.0.2
>
> Attachments: image-2026-09-08-13-34-48-536.png,
> image-2026-09-08-13-55-36-085.png
>
>
> This will add that option, but keep it disabled.
> For now it will only be tested in unit tests.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)