Jump to content

Include Text Files for Text Content?


kael.shipman

Recommended Posts

Hey everyone,

 

Is it pretty standard procedure to use .txt files to store textual content on a big site? I have the content set up in the database right now, but management is a headache at best and I want a system whereby I can easily edit the content from a text editor or from a browser interface. I can see the text file solution filling both of these needs, not to mention that in my preliminary testing it was almost twice as fast as calling from the database (even with good indexes). I just don't want to redesign my whole system only to find out that someone already tried it this way and it didn't work. I also have a search page to worry about, for which I was planning on simply iterating through the files and checking each as I would a database entry. The search page is almost negligible, though. Not only does it not get much traffic, but we're mainly a catalog site, so anyone searching the site would likely be searching products anyway.

 

Please let me know if you see any catastrophic holes in my plan!

 

Thanks,

Kael

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.