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

Limit on async requests when using more than six data sources #248

Open
EricPaulson opened this issue Sep 14, 2021 · 1 comment
Open

Limit on async requests when using more than six data sources #248

EricPaulson opened this issue Sep 14, 2021 · 1 comment

Comments

@EricPaulson
Copy link

I've been using this library for quite some time, and I've noticed that if I use more than six data sources, only the first six requests are made.

image

I have eight data sources, but no matter what I do, I'm only seeing requests for the first six. I am using the latest version of this fork.

@AzhurV
Copy link

AzhurV commented Nov 18, 2021

I had the same issue when using typeahead with multiple Bloodhound sources and was able to work around it by including maxPendingRequests in remote for each source, i.e.

var suggestionEngine = new Bloodhound({
    datumTokenizer: Bloodhound.tokenizers.obj.whitespace('value'),
    queryTokenizer: Bloodhound.tokenizers.whitespace,
    remote: {
        url: "myUrl",
        maxPendingRequests: 8,
        ...
    }
});

It seems like the default for maxPendingRequests is 6 based on PR #62. Although even then it seems like requests past the max pending limit should be sent after previous requests have finished rather than just being dropped entirely.

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