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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:24:07+00:00 2026-05-30T07:24:07+00:00

I’m just learning about ORM’s, and am wondering… if you have an object (a

  • 0

I’m just learning about ORM’s, and am wondering… if you have an object (a JSON let’s say… and assume it’s dense, contains nested objects, has a total number of properties that could vary from object to object, etc), what would be the argument against simply turning it into a serialized array, and storing it in a table?

The object I’m describing likely won’t normalize anyway; it would have an indeterminate amount of properties meaning an indeterminate columns… map this kind of thing to a table would require an insane amount of rows and keys all over the place.

If you’re ultimately planning on querying the db for an object to then process via code, what is the downside to simply serializing it or using some kind of OODB? What would I gain by using an ORM?

  • 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-30T07:24:09+00:00Added an answer on May 30, 2026 at 7:24 am

    My experience is that because the Storage layer for the ORM expects the storage data to be dynamic and therefore holds no preconceptions about its format, it can be better equipped to deal with the exceptions to the norm. (Not actual error exceptions but cases where your object doesn’t match your Database Schema)

    When you’re dealing with Dynamic objects, the rigidity enforced by classic storage generally forces you to either handle the exceptions to norm or create a database schema so loose, that using it defeats the optimisations generally granted by the Database engine; think computed stats and various indices.

    However, ultimately I think you’ve hit the nail on the head in your second paragraph: If it won’t normalise then you will have trouble representing it into a schema that’s good enough for your database to work with efficiently.

    Sure you could serialise the entire object to an array and store that, but you lose the potency of good indexing, full text search and being able to cross-reference objects without having to do multiple reads.

    An example for the above, say your DB is modelling ecommerce orders and you want to find subsequent purchase orders to the initial one. The database would need to know how to read each serialised item to find it’s parentId property and then rescan the table for matches.

    Long story short, ORMs are an answer to a problem that’s been extant since Object Orientated programming was dreamed about – Don’t worry about it and use them, unless you’re sure that your data structures/schema are rigid and sensible to SQL.

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

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I have a text area in my form which accepts all possible characters from

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.