hoaproject / Console

The Hoa\Console library.
https://hoa-project.net/
366 stars 32 forks source link

Autocompleter: Huge number of words #60

Open Esysteme opened 9 years ago

Esysteme commented 9 years ago

The goal is to make a query each push on key board to get result from DB.

The goal is to make auto complete with 10 000 000 line in DB, of course set 10 000 000 elem in array in not the good solution

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27762259-autocompleter-huge-number-of-words?utm_campaign=plugin&utm_content=tracker%2F459935&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F459935&utm_medium=issues&utm_source=github).
Hywan commented 9 years ago

Hello :-),

The goal of what? Is it a question? A bug? A feature request? A PR?

Esysteme commented 9 years ago

question or feature request, not a bug =)

Hywan commented 9 years ago

I don't see any question. Can you reformulate please?

Esysteme commented 9 years ago

well instead to put an array of 1 000 000 000 of elements, I would to use the result of an SQL query that i feed to each input on keyboard. if any possibility to do that if not to make this feature.

Hywan commented 9 years ago

I guess yes. We could be able to change Autocompleter\Word to work on an iterator instead of an array. And this way you will be able to pass the SQL result as an iterator. It will save memory. But if you need to iterate over all the result set, it can be long…

Thoughts?

Hywan commented 9 years ago

@Esysteme Did I rename the issue correctly?

Jir4 commented 8 years ago

ping @Esysteme

Esysteme commented 7 years ago

Sorry yes correctly renamed, anyone think about this new feature ?