Jump to content

How would you put a word list into a database?


tomdelonge

Recommended Posts

I've got a word list that is not alphabetized (yet). What do you recommend? Should I put the words into tables by letter (say, table "A" has all words that start with "a".) Or will having all words in the same table be just as fast? I'm going to write a little php script to put the words into a database. Would it be better to have them alphabetized before putting them into the database? (I'm talking speed wise). On my website, if a user selects "b" from the menu, then all words that start with b will come up alphabetized. Of course this will be complete with pagination (I have about 60,000 words).

 

Also, I'm not set on a wordlist. If anyone knows of a larger dictionary like one, let me know. I searched for about an hour and couldn't find any large ones in an open format (one I can use, rather than an application using).

 

So, basically, give me your ideas on how I should organize it; For the best processing speeds and such.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.