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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:16:37+00:00 2026-05-23T20:16:37+00:00

I want to store documents with metadata in a web application such that a

  • 0

I want to store documents with metadata in a web application such that a person can view them in a hierarchy.

I gather that a typical way to do this is to create a database entry for each document, store metadata in the database and store the files on a filesystem.

It seems much simpler and faster to store both the documents and the metadata on the filesystem. So a directory might look like this

$ ls subdirectory
.json
Subsubdirectory
bar.pdf
bar.json
foo.tex
foo.json

And then I could get the metadata from the json files (or whatever format I use). I could render subdirectory/foo.html based on the contents of subdirectory/foo.json. And I could render subdirectory.html based on the contents of subdirectory/.json and the contents of the other child json files.

The main disadvantage I’ve thought of is that it might be harder to search based on the contents of the metadata file (though I could search based on filesystem-level metadata). What other disadvantages are there? And if people do use this approach, why don’t I hear about it?

EDIT: I’m not really so concerned about searching; if I build some sort of searching, it’ll probably be within a single, smallish directory.

  • 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-23T20:16:37+00:00Added an answer on May 23, 2026 at 8:16 pm

    “I could search based on filesystem-level metadata” – you could do this but it means each time you do a search you have to read all the metdata files from the FS and then you have to manually process it. There’s no indexing, this is roughly the equivalent of a full table scan in an SQL database (but it’s even slower..).

    In general storing data on the FS has some other drawbacks, you have to do replication both for durability (so you don’t lose files if the disk dies), and if your site is popupar, for scalability. But since you already storing the files on the disk you have to solve this issue anyway.

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

Sidebar

Related Questions

I maintain a web application (ASP.NET/IIS7/SQL2K8/Win2K8) that needs to access documents, actually hundreds of
I have a java web application which needs to upload files and we want
I would like to store some Application-Related Metadata for Files, and NTFS Alternate Data
I have a website built (Java/J2EE), and now I want to store documents in
I want to use MigraDoc/PdfSharp to create and store PDF documents. Is there a
I'm developing an iOS app. I get collection of images from web, store them
I want to store image documents in MongoDB. I am using java. Any links
I want to store blog and its tags as separate documents. Blog post should
My application uses MSXML version 1 (MSXML.DOMDocument) to store user documents in XML format.
Is there any way in which a PHP powered web app can store data

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.