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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:20:38+00:00 2026-05-26T07:20:38+00:00

I would like to store data in a queryable format without knowing ahead of

  • 0

I would like to store data in a queryable format without knowing ahead of time what fields a given packet of data will contain.

The simple/dumb approach seems to be something like a big key-value pair table with a key back to a table of ‘parent’ objects which the data describes.

The data will have the following properties:

  1. Many pieces of ‘metadata’ will be associated to a single parent object
  2. The data will always be in key-value pair form
  3. The data will not be heirachical (one level of key value pairs only)
  4. There will be lots of it. Never purged. Moved to duplicate archive stores if required

For example

A log file is parsed and it’s messages pulled into some defined format based on some rules as follows:

  • Log/System Name
  • Location
    • Date
    • Time
    • Level
    • Message

There may be many logs parsed for many different systems. Each system may have different fields.

The Date/Time/Level/Message fields are only known when the rules for parsing the file are created, not when the data store is being built.

How would you go about this? What kind of database/design would you use?

  • 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-26T07:20:39+00:00Added an answer on May 26, 2026 at 7:20 am

    Option 1: Use one of the NoSQL databases like MongoDB – I’m not familiar with these as I live in a mostly SQL Server world. These allow you to have records that are documents, not static number of columns like relational DB’s

    Option 2: Relational DB

    Table: Log {Id (PK), Date, Time, Level, Message}
    Table: ExtraFields {Id (PK), FieldName}
    Table: AdditionalFields {FieldId (PK), LogId (PK), Value}

    Here each record would get a Log record, and then a number of additional fields in AdditionalFields, that link back to the LogId. You could then Load these into a Log object. The ExtraFields table would have all the types of fields. If it doesn’t exist when you load a record, then you add another one. So this might have URL, IP, User-Agent etc if it was web logs.

    Alternatively, you could avoid the ExtraFields table and just put the field name directly in the AdditionalFields table.

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

Sidebar

Related Questions

I would like to store time data accurate to the centisecond. The mySQL manual
I would like to store log4net config data in my application.config file. Based on
I would like to store data in Generic Dictionary with keys that match over
I would like to store the data in the MySQL BLOB field. I am
I would like to store some Application-Related Metadata for Files, and NTFS Alternate Data
I would like to populate the data store. Yet all the examples and instructions
I would like to know if I can store more data than a Facebook
I would like to store data temporarily on clientside. What is the best way
I would like to use a document oriented db to store data from a
I would like to store millions of data lines that looks like this: key

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.