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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:17:40+00:00 2026-05-20T09:17:40+00:00

I’m planning to build an application that must allow the user to set up

  • 0

I’m planning to build an application that must allow the user to set up its own data model (i.e. create fields, data structure, etc.) dynamically.

I’m facing several technical possibilities, all having drawbacks. :

  1. in admin screens, update the SQL schema of the DB to reflect the changes.
    • I fear this is a very bad idea because of the permissions the application must have on the DB. Moreover, if every click a new sql schema must be applied, I imagine I will run direct on a hole. This is the approach I’ve seen on most application customizable by the user.
  2. create in DB schema a set of generic extra columns and hope there is enough columns for the complex data models.
    • this will quickly can be a functionnal limitation if I can’t allow more than X columns in my app
  3. store in a single table all items with an ID column and a Xml column to store the user-defined columns.
    • this approach may remove the previously mentioned drawacks because the sql schema will remain static, but as EF (which I was hoping to be able to use) does not know how to manage xml data type, I will have to end up with either manual SqlCommand with XML function, or writing a custom EF provider, which I imagine will be quite a lot of work.
    • This the approach chosen by Microsoft for SharePoint… this let me think it’s the better one (or at least the less bad)
  4. create a “properties” table with basically a itemId column, a property name column and a property value column
    • this approach implies a very very large table (X items * Y properties per item)
    • I will have to store my values in plain text, even if it’s numerical for example.

My requirements are :

  • keep the code maintainable, unit testable and all fashioned technics
  • have a responsive application with large amount of data
  • have an as secured as possible application
  • allow the users to fully customize their application (create custom view with filter / sort on user properties).

I feel the choice of the correct design must be the good one now, because it would be very hard to change this latter.

Any feedback would be appreciated

  • 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-20T09:17:40+00:00Added an answer on May 20, 2026 at 9:17 am

    One option would be to use a NoSQL database like MongoDB which is schema-less. New fields don’t need to be defined up front (no schema modification headaches) and different records can have different fields. This is one of the benefits of a NoSQL store like this.

    e.g. in mongo, your “table” could have these 2 records within in legimitely:

    {
        "ID" : 1,
        "FirstName" : "Joe",
        "LastName" : "Bloggs",
        "FavouriteColour" : "Blue"
    }
    
    {
        "ID" : 2,
        "FirstName" : "John",
        "LastName" : "Smith",
        "DOB" : "2000-01-01"
    }
    

    Adding in a new field is as simple as just start including it in records.

    In my experience, having a fully flexible/dynamic schema in a RDBMS like SQL Server can be a bit of a pain and be challenging to achieve high performance. I’ve had experience with options 1) and 3) that you listed. When data was stored as XML, I ended up usually needing to shred the data out into relational form anyway for certain purposes.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a French site that I want to parse, but am running into
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti

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.