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

  • Home
  • SEARCH
  • 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 195603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:41:46+00:00 2026-05-11T16:41:46+00:00

We are building a solution for document storage and for each document we need

  • 0

We are building a solution for document storage and for each document we need to store a lot of extra metadata with it to comply with local regulations, ranging from basic data like title or description to dates of relevant events or disposition and classification rules.

I’ve seen different types of solutions, but none convinces me:

  1. Tables that grow in columns when a new metadata slot is added (so they have as many columns as metadata associated with the documents)
  2. Tables with a lot of spare generic columns. Very similar to 1. but the tables don’t grow (less permissions)
  3. A table of document ids, metadata keys and metadata values.
  4. A table with metadata definitions and metadata keys in 3. are substituted by metadata ids. We used this solution in the past. The tables have millions of rows at the end.
  5. A text field in the document table or associated table that stores a XML or other structured information with all the metadata in key-value pairs.

I’m biased towards number 5, providing a parallel full-text index (Lucene.Net? Other?) to search by relevant metadata (not everything has to be “searchable”).

Any suggestion? Similar experiences?

  • 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-11T16:41:47+00:00Added an answer on May 11, 2026 at 4:41 pm

    Table 1: Document information (PK is document ID)

    Table 2: Metadata definitions (PK is metadata definition ID)

    Table 3: Document ID, Metadata defintion ID, metadata value

    The biggest drawback to this is that you’d either have to have a single type (varchar, presumably), or you’d have to have n columns (where n is the number of data types you’re willing to store), and use a column in the metadata definitions table to identify which column in table 3 to pull the value from.

    My opinions on the 5 solutions listed:

    1. Growing tables is a pain, and could cause issues down the line (particularly if you want/need a non-nullable metadata value).
    2. I hate ‘spare generic columns’ with a passion (even though they’re popular).
    3. Close, but this limits your metadata flexibility even more than my solution. If your metadata keys and values are fairly basic, it might work.
    4. I’m not really sure what you mean by this one – is it the same as I’m proposing, or something else?
    5. I don’t like storing structured XML in an RDBMS – you lose most of the power of the RDBMS by doing this IMHO.

    That’s my thoughts – I’ve never designed a system like this, but I have dealt with commercial systems that have used several of these schemes.

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

Sidebar

Ask A Question

Stats

  • Questions 105k
  • Answers 105k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The problem I was having was related to the fact… May 11, 2026 at 8:43 pm
  • Editorial Team
    Editorial Team added an answer You should write your problem that way so it doesn't… May 11, 2026 at 8:43 pm
  • Editorial Team
    Editorial Team added an answer As MaxVT said, it is highly unlikely that the overhead… May 11, 2026 at 8:43 pm

Related Questions

We (my company) is trying to develop a solution (application) for document management. We
We've built an application on top of ASP.NET MVC. We now need to allow
Yes, I realize this question was asked and answered, but I have specific questions
We are building a new application in .net 3.5 with SQL server database. The
So we're building a locally(at customers site) hosted, custom point of sale system, nothing

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.