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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:13:59+00:00 2026-05-30T19:13:59+00:00

I have been tasked with refactoring a project that currently uses an EAV model

  • 0

I have been tasked with refactoring a project that currently uses an EAV model for data storage.

In some implementations, the main table holds several million rows. As you can imagine, I consider this an abomination.

The refactor is driven by a need to do spatial searches, which don’t really work when your lat and long are stored as comma separated text in a VARCHAR field… but I digress.


The nature of the project means that producing a static set of normalised tables in advance, is out of the question. Think of it as a kind of a dynamic form builder, where the number of fields in a new form is unknown, the number of options for a dropdown is unknown, etc.

I’m toying with the idea of creating a “DynamicTable” class, that would maintain a dictionary of fields, and manage a dynamically created set of tables. Caching is already very well implemented (using memcached) so the dictionary would only need to be queried when the schema is changed (rare after initial commit) and on reboot (even more rare).


My initial attempts at fleshing out even something basic are making me realise the full scale of what I want to do, and my searches for similar projects have been pretty fruitless.

Can anyone:

  • Commend mycurrent approach and wish me luck.
  • Recommend an alternative approach that is better, even if it isn’t necessarily easier.
  • Recommend any projects I can look at that achieve a similar goal (my searching yields nothing!)

Cheers guys!

  • 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-30T19:14:01+00:00Added an answer on May 30, 2026 at 7:14 pm

    Answering my own question then.

    Taken the advice of Charles I investigated several NoSQL Document DB options, and eventually decided on MongoDB.

    It’s an excellent fit for the type of data I am trying to store, and so very easy to work with.

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

Sidebar

Related Questions

I have been tasked with refactoring some components that used xmlbeans to now make
I've been tasked with porting/refactoring a Web Application Platform that we have from ASP.NET
So I have this Access Database Project file that I have been tasked to
I have been tasked in re-factoring some code on a web forms project and
I have been tasked with producing a analytic tool for some of the data
I have been tasked with going through a number of ColdFusion sites that have
I have been tasked to optimize some sql queries at work. Everything I have
I have been tasked with developing a solution that tracks changes to a database.
I have been tasked with creating a program that will generate an amortization schedule.
I have been tasked with writing an ADP application using Access. The back-end 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.