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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T23:18:02+00:00 2026-05-19T23:18:02+00:00

I am developing a system that will have a database backend. I am intending

  • 0

I am developing a system that will have a database backend. I am intending that every table have a PK that is arbitary, system generated and maintained.

My environment (for development and production) is Windows 7; Delphi; and an embedded database (probably Firebird).

My data structures include one table OWNER, that has very little information associated with it – probably no more than name and description. The rest of the data structure will be about 50 tables, each with name and description, together with a list of other attributes – say 20 per table on average. In addition there could be 20 associative tables most of which will have only FK attributes, though a small proportion will have additional attributes. It is my intention (at least to start with) to have the schema fully normalised.

For a given OWNER, most table will have O(10^3 to 10^4) records, though one or two will have O(10^5 to 10^6). The number of OWNERs is likely to be O(10^2 to 10^3). Most accesses are likely to be clustered – there will be a substantial number of accessess for one OWNER, and then a substantial number of accesses for another OWNER.

Every data item will belong to exactly one OWNER, and cannot be transferred from OWNER to OWNER. All accesses to the database will know what OWNER they are using; no access will ever have to access the contents of more than one OWNER.

I am aware of the following three options in designing my schema:

  1. Use the OWNER table as described. Use the OWNER PK as a foreign key in every table (though possibly not the associative tables). Add the OWNER PK as an additional clause into every query, join, stored procedure, view etc.
  2. Add a column to the OWNER table containing a small code – say a four digit integer. For each OWNER, create a duplicate set of tables – the table names for a particular OWNER will have the appropriate code added as a suffix. This would require every access to have previously obtained the suffix code from the database. Then the access will be of the relevant set of tables.
  3. For each OWNER, create a duplicated database, with the tables and table names being duplicated. This implies that there would probably be a subsidiary common database containing data about the relevant duplicate database. Again this common database would need accessing before any access – or series of accesses for one particular OWNER.

What are the pros and cons of these different approaches? Have I missed any other options for overall design?

Edit reversed – I provided my own answer instead.

  • 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-19T23:18:02+00:00Added an answer on May 19, 2026 at 11:18 pm

    Option #1 is by far the best. Obviously you are planning to use a system generated id number for this record as well…otherwise you will run into a problem if your OWNER pk is the person’s name and you end up with multiple John Smith.

    Option #2 would work fine, but adds too much complexity. So long as you already have the OwnerId as the PK in OWNER table, jsut fk that for the rest and save the additional overhead and effort.

    Option #3. This option is great if you have a poor front-end interface and want to be able to easily read through the records manually and make sense of them…but all the extra tables will slow you down and create extra sub-routines that have to be written into the front-end to keep track of the tables.

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

Sidebar

Related Questions

I will be developing a system that will involve a data acquisition server where
We are developing a service layer for a new system that will handle all
We're developing a server system in Scala + Akka for a game that will
I'm developing a set of applications that work together to create a system for
I'm developing an ASP.NET system that has two different 'tiers' of roles. The main
I'm developing a standalone application that accesses a common database on a server. It
I am developing a system as an aid to musicians performing transcription. The aim
When developing on a system with dual monitors, I like to make the most
I'm developing an embedded system which currently boots linux with console output on serial
I'm developing an operating system and rather than programming the kernel, I'm designing the

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.