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

What is the limit on the usage of MultiQuery? #39

Open
summerkiflain opened this issue Nov 12, 2024 · 0 comments
Open

What is the limit on the usage of MultiQuery? #39

summerkiflain opened this issue Nov 12, 2024 · 0 comments

Comments

@summerkiflain
Copy link
Contributor

Multi-Query

// Merge queries together into a single request
const now = Date.now();
const response = await apicalypse(requestOptions)
    .multi([
        apicalypse()
            .query('games', 'latest-games')
            .fields('name')
            .where(`created_at < ${now}`)
            .sort('created_at desc'),
        apicalypse()
            .query('games', 'coming-soon')
            .fields('name')
            .where(`created_at > ${now}`)
            .sort('created_at asc')
    ])
    .request('/multiquery');

Hi,

This is not an issue but a question? I know that IGDB API is rate limited with 4 requests per second and 8 active requests.

How does multiQuery handles this? Is there a limit on how many queries can be combined into 1 multiquery request? Does multiquery handles queuing and limitation itself? Is there any upper limit?

Any help or guidance is really appreciated.

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

1 participant