Coder Social home page Coder Social logo

Performing search CPU spikes about lifti HOT 6 OPEN

mikegoatly avatar mikegoatly commented on July 24, 2024
Performing search CPU spikes

from lifti.

Comments (6)

markwriter avatar markwriter commented on July 24, 2024 1

Hi, I discovered that I may have caused the problem by loading the thesaurus incorrectly. Currently I have about 50 items in it and when I comment out all but a few of them the CPU spiking goes away (and that fantastic Lifti-speed returns!). I will take a bit of time to figure out which item(s) are the culprit and get back to you.

from lifti.

markwriter avatar markwriter commented on July 24, 2024 1

Sorry!! I never was able to test it long enough to figure out why the slowdown occurred. I would like to get back to it.
Also, I didn't mention that we finally went to production with this and you have made some users extremely happy with 1 second search times compared to the 10 seconds that it was previously.

from lifti.

mikegoatly avatar mikegoatly commented on July 24, 2024

Are the queries that are being run the same? I would expect different operators to exhibit different cpu cost, so if the queries aren't identical then that could be part of it.

from lifti.

mikegoatly avatar mikegoatly commented on July 24, 2024

Assuming that what you're experiencing isn't a bug in LIFTI, the most likely cause will be due to an increased number of matches that need to be merged in the case of a query containing lots of search terms, or there is a wildcard in the query that's becoming computationally expensive to run.

Let me know what you find out - if there's a concrete example I can work with I'd be happy to find some time to take a look.

from lifti.

mikegoatly avatar mikegoatly commented on July 24, 2024

@markwriter I'm interested to know if you're able to share where you got to with this?

from lifti.

mikegoatly avatar mikegoatly commented on July 24, 2024

That's great to hear, @markwriter. I'll keep this issue open for a while in case you get chance to look into it any more.

from lifti.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.