FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Slow Elasticsearch queries

    Scheduled Pinned Locked Moved
    Q&A
    0
    2
    418
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      luke.fishman
      last edited by

      Hello.

      I have an issue with very slow elasticsearch queries...
      if i try to find a user by loginId or userID the reponse takes about 300ms

      4e451ef1-b27c-4eff-a470-72898943b4e9-image.png

      if i query the elasticsearch engine dierctly, also fast reponse

      7d424bb5-42ad-45aa-8aaa-ea782a8d96aa-image.png

      BUT, if i query fusionauth search with a querystring param. very slow response (~8 to 10 seconds)
      f3a43ba5-cf1e-4cc1-b94f-423d09d3acb1-image.png

      here is my config:

      5a85bdc4-bf3e-471a-9618-b86274f02250-image.png

      Ideas?

      1 Reply Last reply Reply Quote 0
      • joshuaJ
        joshua
        last edited by

        Hi @luke-fishman,

        I have a few questions for you to see if we can get to the bottom of this.

        Is this an ongoing problem or has it recently surfaced? If recently surfaced, has anything changed which would slow your queries down? For instance, have you made any architecture changes? Was this user query much faster in the recent past?

        What do queries from the Admin UI look like (are they performant?)?

        Other things to evaluate include the size of your database and your architecture to make sure it's right-sized for your use case.

        Finally, are you seeing anything in the error and event logs in FusionAuth (or in your server) that would indicate a larger problem?

        Thanks,
        Josh

        1 Reply Last reply Reply Quote 0
        • First post
          Last post