• Resolved triskelstudio

    (@triskelstudio)


    Hi,
    When I want to “Re-index search page records” I now have a 503 error.
    I contacted the hosting server and it’s because there are too many request sent at the same time.
    What can I do to slow it down a bit?
    Thanks,

Viewing 1 replies (of 1 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    We don’t really have a way to “slow things down” so to speak, from what I’m seeing in the code. We do have the ability to adjust the batch size, via filter. That may or may not help.

    apply_filters( 'algolia_indexing_batch_size', 100 );

    You’d want to return something larger than 100 to reduce how many iterations would be needed to handle everything.

    Alternatively, I wonder if the WP-CLI scripts we have with the plugin could help. It wouldn’t necessarily be faster, but it’d need less loaded UI and whatnot, which may help with regards to the original error.

Viewing 1 replies (of 1 total)
  • The topic ‘503 Error’ is closed to new replies.