Menu

Speed it up a bit..

Ramin
2005-05-25
2013-04-11
  • Ramin

    Ramin - 2005-05-25

    Here's an idea to speed things up a bit.. while entering characters into the fields, if no entries were found, some sort of flag should be set telling it to stop trying to look up matches. Hopefully this will speed it up a bit.

     
    • Chris Holland

      Chris Holland - 2005-08-12

      it should already be doing something along those lines, in that as you type, it creates a new cache of found results so the next subsequent character you add searches from a smaller subset. If the previous entry had no results, it should essentially search from an empty array which should accomplish what you mention. Mmmm.

       
    • Chris Holland

      Chris Holland - 2005-08-12

      mm i just did some more testing and it would appear to be doing too much work when nothing's being matched. That's not good. You're right, I've got a bug here.

       
    • Miles Davis

      Miles Davis - 2005-10-20

      How can we make the content more dynamic. Like as you start typing things in it starts remebering what you type instead of having a static set of data in sample_data.js ? Is this the point for the implementor to change and use the own persistence for future use ? If this is the case might be nice to make the sample more dynamic and use something like AMASS so store results.

       
    • lpanebr

      lpanebr - 2005-11-08

      First of all: congrats for this is way cool tool!!!
      Second: this is my first post on SourceForge..

      I was also worried about the speed so I used a function that uses XMLHttpRequest to use the UserInput on the functions getUserInputToMatch() and getUserInputBase() to re-define the collection retrieving de values from a mysql db, thus making the lenght of the initial collection smaller.
      Everything works fine for the first sugestion but the 2nd sugestion occurs only for a few letters and the 3rd doesnt return sugestions for any letter..  I do not have a clue yet of how to solve this but I only added my function to the script, I didnt try to edit it for I dont yet studied it.

      any ideas as how to integrar rpc calls to the script?
      For now I'm using it to retrieve the collection from a DB insted of a js file..  it's very very nice and for what it matters quite fast!

       

Log in to post a comment.

MongoDB Logo MongoDB