1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Measuring Speed

Discussion in 'Enhanced Search Support' started by Marcus, Oct 21, 2013.

  1. Marcus

    Marcus Well-Known Member

    I created a basic search on both my slow test board with stock xenforo as well as the live board with elasticsearch and a much faster computer, and the results are around the same.

    How do you measure the speed of this search engine? And how do you optimize elasticsearch?
  2. digitalpoint

    digitalpoint Well-Known Member

    What query are you using to test? The more complex the query, the slower the default MySQL FULLTEXT search is going to be.

    Also, how many posts are in your database?
  3. Marcus

    Marcus Well-Known Member

    I have more than one million posts, and the query was very basic like "house". I was just surprised that the elasticsearch query did take some time, maybe because of the general overhead.
  4. digitalpoint

    digitalpoint Well-Known Member

    Did you allocate enough memory to Elastic Search? If it's using disk as a RAM swap, it's going to be pretty slow.
  5. Marcus

    Marcus Well-Known Member

    I'll dig into it, I guess I gave it like 3 GB but I am not sure.
  6. AndyB

    AndyB Well-Known Member

    How much time?

    Remember that ElasticSearch is used to narrow down the results and those results are then given to MySQL for a final query.

Share This Page