Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7440213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:49:02+00:00 2026-05-29T10:49:02+00:00

In my application, I chose markdown as the format for some texts. Obviously, parsing

  • 0

In my application, I chose markdown as the format for some texts.
Obviously, parsing the text takes some time.

The question is, is it worth caching it? And if so, where? Text file or database?

As I see it, I have three options:

  • Don’t cache. Run the parsing each time the text pulled from the database and displayed.
    (In Symfony2/Twig, I’d just do {{ text|markdown }})

  • Have two fields in the database, content_source and content_parsed. Each time the text is editted, save the parsed code and when requested, simply display the cached code.

  • Cache the parsed code as a file. When requested, check if the file exists (if not, parse it and cache it) and display it.

Thoughts?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T10:49:03+00:00Added an answer on May 29, 2026 at 10:49 am

    Personally, I would store both the source and the parsed content in a database, unless the content gets to be large. Parsing each time is going to be a big scalability problem.

    And,it depends on whether you need access to the original content. When I’ve been in similar situations, I find that we might make changes to how we parse such content, and need to go back and re-parse all of the old content, so its definitely handy to keep the original content around.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I setup my application at AppHarbor, I chose a URL. However, I'd like
We started building our website / application back in 2006, and chose to use
im about to create an android application that do some actions and profile changing
My application reads a csv file provided by the user. This csv file contains
I am writing a C++ application that is using boost::asio for some http operations.
I have this application from the market in an apk format, but I want
I'm developing my application as a set of OSGi bundles using Maven 2. Some
I'm looking for some guidance about how to chose an IoC container for an
We have developed a mildly sophisticated web application using JQueryUI and themes. We chose
I chose log4Net after much considerations to be my Logging application so please no

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.