Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

feat: chunked index #71

Merged
merged 5 commits into from
Nov 7, 2021
Merged

feat: chunked index #71

merged 5 commits into from
Nov 7, 2021

Conversation

davidnuescheler
Copy link
Contributor

@davidnuescheler davidnuescheler commented Nov 7, 2021

fix:
#38

initial support for chunked index...

compare:
https://chunked-index--blog--adobe.hlx.live/
https://chunked-index--blog--adobe.hlx.live/en/topics/creativity
vs.
https://main--blog--adobe.hlx.live/
https://main--blog--adobe.hlx.live/en/topics/creativity

with chunk size set at 500 i am getting the following on throttled

throttled: chunk measurements - loading: 2437ms filtering: 39ms
unthrottled: chunk measurements - loading: 147ms filtering: 14ms

having said that, the inner loop for the filtering is considerably more expensive, which is definitely a problem especially with respect to the blocking time over 50ms. as in the current index architecture this loop has to run through up to 13k items, i think we should consider optimizing the inner most loop to be faster.

i wasn't able to find a topic page or an author page to make sure that the filtering actually works, so if @kptdobe could point me somewhere i am happy to take a look.

@aem-code-sync
Copy link

aem-code-sync bot commented Nov 7, 2021

Page Score PSI Audit Google
/ SI FCP LCP TBT CLS PSI

@aem-code-sync
Copy link

aem-code-sync bot commented Nov 7, 2021

Page Score PSI Audit Google
/ SI FCP LCP TBT CLS PSI

@aem-code-sync
Copy link

aem-code-sync bot commented Nov 7, 2021

Page Score PSI Audit Google
/ SI FCP LCP TBT CLS PSI
/en/topics/creativity SI FCP LCP TBT CLS PSI

@kptdobe
Copy link
Contributor

kptdobe commented Nov 7, 2021

I have edited the description with the creativity working topic.

@kptdobe kptdobe closed this Nov 7, 2021
@kptdobe kptdobe reopened this Nov 7, 2021
@aem-code-sync
Copy link

aem-code-sync bot commented Nov 7, 2021

Page Score PSI Audit Google
/ SI FCP LCP TBT CLS PSI
/en/topics/creativity SI FCP LCP TBT CLS PSI

@kptdobe
Copy link
Contributor

kptdobe commented Nov 7, 2021

the inner loop for the filtering is considerably more expensive, which is definitely a problem especially with respect to the blocking time over 50ms

That's why I tried to explain with adobe/business-website#131 (comment).

My initial approach did not have this problem (only filter until you find 12). Yes, you might need to fetch the next chunk but you cannot avoid this case.

@davidnuescheler davidnuescheler merged commit 20cd44e into main Nov 7, 2021
@kptdobe kptdobe mentioned this pull request Nov 8, 2021
@dominique-pfister dominique-pfister deleted the chunked-index branch November 15, 2021 07:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants