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 3874290
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T22:08:05+00:00 2026-05-19T22:08:05+00:00

I am currently developing an ecommerce software using PHP/MySQL for a big company. There

  • 0

I am currently developing an ecommerce software using PHP/MySQL for a big company. There are two options for me to get some specificed data:

  • DB (for getting huge data, such as PRODUCTS, CATEGORIES, ORDERS, etc.)
  • TXT (using YAML -for getting analytical data and some options)

For instance, when a user go to product details page I need to get those TXT files:

  • Product summary file (product_hit, quantity_sold, etc.) -approximately max. 90KB
  • Langauge and Settings file (such as company_name, translations for template) -approximately max. 300KB
  • May be one more file (I don’t know right know) -assume that 100KB.

I want to use this way, because data is easily readable by human and portable between programming languages. In addition, if I use DB, I need to connect a couple of tables. But these files GET THEM TOGETHER.

My txt file looks like (YAML):

 product_id: 1281
 quantity_sold: 12 #item(s)
 hit: 1105
 hit_avarage: 92 #quantity_sold/hit
 vote: 2
 ...

But, still I am not sure about speed and performance. Using TXT files are good idea? Should I really use this way instead of DB?

  • 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-19T22:08:06+00:00Added an answer on May 19, 2026 at 10:08 pm

    As you can’t partially include and parse a YAML file, you’ll have to parse the file as a whole, which means that you’ll have an incredible performance hit. You can compare this to selecting all rows from a database and then looping over them to find the one that you’re looking for, instead of just typing a WHERE condition. So yes, a database is much faster to accomplish what you ask.

    Please do take a look at Document Based Databases though, you don’t necessarily have to use a relational database. In fact, when looking at the example of the YAML file, I think using a “no SQL” database would be a better alternative.

    Cheers.

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

Sidebar

Related Questions

I'm currently developing a PHP application that's using an Access database as a backend.
I was currently developing a desktop application in C# using mono and testing in
I am currently developing a Rails application using a database that was designed before
We're currently developing a new piece of hand-held software. I cant discuss the nature
I'm currently developing (another) Open Source CMS in PHP and I'd like to use
We are currently developing a server whereby a client requests interest in changes to
I am currently developing an approval routing WCF service that will allow an user
I'm currently developing for a handheld device running Windows XP Professional (not Tablet PC
I'm currently developing an application that is comprised of five separate executables that communicate
I have been tasked with developing a new retail e-commerce storefront for my current

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.