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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:34:07+00:00 2026-05-14T18:34:07+00:00

This is a followup/post question to another question; as I have discovered a solution

  • 0

This is a followup/post question to another question; as I have discovered a solution that has led me to a new problem.

Classes to Entities; Like-class inheritence problems

We’re building this game system, so to speak; and I am using Table Per Concrete Type concept to perform inheritance modeling.

My concern is scalability and performance. I believe I have used a similar technique before and it came out pretty sluggish, but I am not a good DBA, I am a programmer. So I’m very foreign to how this will translate to SQL. But basically it seems to me that it would be slow and weak to have so many ‘linked’ queries running together. I’ve posted my schema and entity model for reference. If I can give clearer information, please ask, as I am really not certain what is relevant to ‘tuning’ this approach.

alt text http://img46.imageshack.us/img46/1043/database.png

alt text http://img293.imageshack.us/img293/6454/entities.png

Sample use would be typical as follows;

static void Main(string[] args)
{
    DataContext db = new DataContext();

    Character character = new Character()
    {
        Name = "First",
        Ring = new Mapping.Ring()
    };


    character.Ring.Keys.Add(
        new Random()
        {
            Dice = 2,
            Sides = 30,
        });

    character.Ring.Keys.Add(
        new Measure()
        {
            Maximum = 100,
            Minimum = 0
        });
    character.Ring.Keys.Add(
        new Measure()
        {
            Maximum = 100,
            Minimum = 0
        });

    db.Characters.AddObject(character);
    db.SaveChanges();

    foreach (Character c in db.Characters)
    {
        Console.WriteLine(c.Name);

        Console.WriteLine(new string('-', 80));

        foreach (Measure k in c.Ring.Keys.OfType<Measure>())
            Console.WriteLine(String.Format("{0}/{1}", k.Minimum, k.Maximum));

        foreach (Random k in c.Ring.Keys.OfType<Random>())
            Console.WriteLine(String.Format("{0}d{1}", k.Dice, k.Sides));
    }

    Console.ReadLine();
}
  • 1 1 Answer
  • 3 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-14T18:34:08+00:00Added an answer on May 14, 2026 at 6:34 pm

    I think a lot of this is going to come down to how the database is tuned, the indexes you have on the tables and the scope of the data.

    To truly “prove” a data model, I’m a big fan of filling the tables with a bunch of data, and query it, see what happens, that is the only real way for you to validate the performance, or lack thereof for an application.

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

Sidebar

Related Questions

I post this question has followup of This question , since the thread is
This is a follow up question from another post but that post was answered.
This is a followup to this question . Since the problem that I'm now
This is a follow up of another question here on SO . I have
This is a follow up question to this post I have two models: CarType.cs
This is a follow up to a question that was asked yesterday. I have
This is a follow-up question related to my previous post . Below is a
This post if a follow-up question to mt previous post: Android RESTful Web application
class Followup < ActiveRecord::Base belongs_to :post belongs_to :comment end This model needs to only
This is a followup of a previous question I had. I got the very

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.