Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow loading times due too lack of parralel backend calls #28

Open
BarrelLive opened this issue Mar 16, 2020 · 1 comment
Open

Slow loading times due too lack of parralel backend calls #28

BarrelLive opened this issue Mar 16, 2020 · 1 comment

Comments

@BarrelLive
Copy link

Hi all,

first of all thank you for this fine plugin.

Is it possible to have non-blocking operations within the "Future _postBuilder".

For instance, if I want to get an author, comments + featuremedia according to the current implementation the postBuilder does this sequential, whereas it could do it parrallel without waiting for the response of the other operations.

An in the end it could wait for all other fetchOperations to join the final result?

Cheers,

@ellie-me
Copy link

postBuilder is a nasty recursive function and I don't think it's good for any WordPress user who has a limit on their server as this function can generate as many http requests as it wants and its bad for concurrency (it can get to the hundreds of requests very easily). One solution might be creating a custom API endpoint with that data filtered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants