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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:43:18+00:00 2026-05-27T11:43:18+00:00

We are attempting to build something akin to a very basic version of a

  • 0

We are attempting to build something akin to a very basic version of a spreadsheet or a database table. We have rows and columns, and we want the user to be able to add rows or columns, and do some basic sorting/filtering.

One concept we’ve had was to simply create a new database table for every “document” that we want to store. This way, the SQL is simple and fast. However, this brings about a plethora of problems including managing the different tables per client, having to execute “ALTER TABLE” statements when they want to add a new column, and similar issues.

So, what is the best way to store grid-like data with unknown columns in a single (or multiple) tables in a database such that sorting and filtering doesn’t become a nightmare?

  • 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-27T11:43:19+00:00Added an answer on May 27, 2026 at 11:43 am

    Until you share more information about what you are trying to accomplish, this simple ER model might be a good place to start:

    enter image description here

    ROW and COLUMN are integer “coordinates” within the spreadsheet.

    Pros:

    • Simple.
    • Potentially very efficient for “sorting” and “filtering”.
    • Efficient (storage-wise) for “sparse” data – i.e. where there are big “holes” in the spreadsheet.

    Cons:

    • Inefficient (storage-wise) for “dense” data, since a lot of repetition will happen in the CELL’s PK.
      • Depending on your DBMS, you might be able to minimize the space overhead using compressed indexes.
      • You could even use compressed clustered table (key-compressed index-organized table in Oracle parlance), with the unfortunate consequence of being able to access the calls efficiently only row-wise or column-wise but not both, and a limited ability to filter by VALUE (secondary indexes are expensive in a clustered table).
    • You have to choose the type of the VALUE in advance, making it awkward to store values of non-uniform types. There are ways to work around this, but they add complexity and can potentially be a performance concern.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following class file that I'm attempting to build. I'd like to
While attempting to build a website, i have gone through many online tutorials. Thanks
I have an Eclipse project that I'm attempting to set up to build both
I'm attempting to use Wix to create a database during install. I have my
I am attempting to create something along the lines of How to Implement Basic
I am attempting to build a category navigation system and so far have all
I'm attempting to build a simple authentication system built around RFID. Basically I have
I am attempting to build a simple method that creates an XML file from
I'm attempting to build Python 2.6.2 from source on my Linux system. It has
I'm attempting to build some C++ code that requires the Windows 7.0 SDK header

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.