Basically, I'm still working on a puzzle related site (actually, on the micro site itself), and I am creating a tool that allows you to enter a word template (for example, "r ?? n") and get all the relevant words (in this case: rain, occasion, ruins, etc.). Should I store the words in local text files (for example, word5.txt, which will have a list with 5-letter letters with a list) or in a database (for example, in the Words5 table, which again saves 5-letter words)?
I consider the problem in terms of speed of data search and CPU server load. I could definitely try this in both directions and record the time spent on several runs using both methods, but I would rather hear it from people who could have experience with it.
Which method is usually better than the general?
source share