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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:45:51+00:00 2026-06-10T06:45:51+00:00

I just wanted to validate my data structure. It seems a bit convoluted to

  • 0

I just wanted to validate my data structure.
It seems a bit convoluted to me, maybe it can be simplified?

Snapshot from Core Data Model Editor

  • Questions are grouped into chapters.
  • For each question, only one answer per session is possible.
  • The purpose is to be able to compare / analyze answers to the same questions (by different users or by the same users at different times, i.e. with different sessions).
  • A template, being a collection of chapters & questions, should not have to be replicated, if chapters and questions are the same.
  • (That would be necessary if Answer did not have a relationship to Session.)
  • Is the relationship from Answer back to Session the right strategy?
  • What else would you improve to simplify the model?

Thank you!

EDIT

Follow-up clarification:

  • The Answer is not static (e.g. “right” answer, “solution”), but some text the user inputs. It is more like a “questionnaire” than a “quiz”. The answer has quantitative attributes that can be analyzed.
  • As stated, one question can have only one answer within a session. Because questions can indirectly belong to more than one session (via (NSSet*) question.chapter.template.sessions), they could have more than one answers and thus need a to-many relationship.
  • The typical scenario: User starts a new session with a certain template and fills out the answers. Then he can look at the analysis of the results and compare those with the results of other sessions that use the same template.

EDIT 2

The snapshot of the data model including attributes

Snapshot of data model including attributes

  • 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-06-10T06:45:53+00:00Added an answer on June 10, 2026 at 6:45 am

    Despite the really helpful effort by the part of @holex – the best way still seems to be to stick with my design. The simplifications I had hoped for have not materialized.

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

Sidebar

Related Questions

Just wanted to write some recursion but can't check if the child is in
I am using jQuery Validate Plugin found from below URL http://bassistance.de/jquery-plugins/jquery-plugin-validation/ I just wanted
just wanted to ask where I define initial class properties? From other languages I
Just wanted to know how i would replace sitename.com with sitename2.com whenever a user
Just wanted to ask you about the drawbacks (I mean memory or reponse time)
Just wanted to know. Is it possible to highlight text in ElasticSearch on an
Just wanted to know something about signed vs unsigned interpretation. Am I right if
Just wanted to check if there is any configuration or parameter to get statistics
Just wanted to know if anyone is really using Objects and Collections in Oracle
Just wanted to know if there is a big chance to inject SQL While

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.