1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

Search Request Random Latency

Discussão em 'Outras Linguagens' iniciado por Rome, Novembro 7, 2024 às 15:33.

  1. Rome

    Rome Guest

    I was successfully using Meilisearch 1.2.0 to 1.3.3 in a Laravel 9 dev project on Windows 10. About a week ago I had to reinstall Windows and WAMP. After the reinstallation I noticed it now took more than 60 seconds (instead of about 5 seconds) to start the Meilisearch engine (the executable) in a cli window and some search requests by my web application now take between 12 to 30 seconds (instead of 1 second before the reinstallations) to show the results. Since I hadn't changed anything in the code and I'm developing locally, I have no clue why there's this huge delay now.

    I tested my code and the delay is clearly coming directly from index searches in my code like these:

    $client = new Client(Search::$url, Search::$key);
    $index = $client->index('releases');
    $releases = $index->search('',
    $searchParams = [
    'filter' => [
    'comp_only = 0',
    'name = "'.$name.'"',
    'system = "'.$system.'"'
    ],
    'limit' => 500
    ])->getHits();


    I updated Meilisearch from 1.3.3 to 1.11 and completely rebuilt the search indexes but no luck. The results are totally fine but take 12 to 30 seconds instead of 1 second. There is no pattern: The exact same search request takes 1 second one time and another time 15 seconds for the same request. Any hints where I could look to investigate further? Thanks.

    Continue reading...

Compartilhe esta Página