Forum Moderators: open

Message Too Old, No Replies

Dictionary Application in GWT

         

Madhur

3:33 pm on Mar 24, 2011 (gmt 0)

10+ Year Member



Hi All,
I want to create a Dictionary application in GWT using DB as backend. My DB will contain thousands of letters and I want to fetch words that match the input from the user at run time. That means if a user will input a letter 'A' then all letters starting with A should be displayed and the list should change dynamically.
A solution to this can be querieng DB every time user inputs a letter but this can be time consuming and will hamper the performance. Can there be a better solution to implement this?

brotherhood of LAN

3:43 pm on Mar 24, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Welcome to the forums Madhur,

I think a binary tree format is the preferred method for optimal word lookup. This data would be stored in memory on startup and would avoid continually reading a hard disk (cache aside) for every keystroke a user makes.

Something like this Perl module could be useful: [search.cpan.org...]

I'm not sure if that's the answer you're after and how it ties in with GWT, though it is a good method of storing word data.