Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Seeking advice on container table

Featured Replies

I'm in the process of splitting a table containing images and their descriptions into two separate tables (for performance reasons). In looking at design alternatives, I've come up with these considerations:

Parallel Tables (pure, no links)

Depend on GetNthRecord(Image)::GetNthRecord(Description)

Requires meticulous record-level operations on adds/deletes

Parallel, but singly-linked

Include associated image record number in description

Both tables substantially "ordered / sequential", which would enhance performance

After-the-fact processing could confirm and restore proper relationships

Parallel, doubly-linked

Same advantages as above, but with the redundancy.

I'm not comfortable with the fourth alternative, which would be "entirely relational" -- with the individual tables standing on their own. In other words, if an image is deleted, but the description is still there, so be it ... "Image Not Found".

The bottom line, of course, is that I can never allow an image to become disassociated from its description. BTW, images are acquired in groups of two or three -- many times during the day -- and the user enters the descriptions after the basic records are created by a script. (And image/description combinations may be deleted by the user.)

I'll appreciate any advice -- especially from anyone who's managed thousands of images over many months.

Thanks in advance.

I am not sure I see the dilemma: if a description is always created when the image record already exists, why not make it a "child" of the image (i.e. the description has a foreign key of the image)? The relationship should have 'Delete related records..." turned on both sides, and adding new records to the descriptions table - other than by creating a single child record of an existing image - needs to be prohibited.

  • Author

That sounds like a perfect solution. The basis for my "dilemma" is that I still think in hierarchical terms -- and struggle to make the transition to the higher ground of relational. I've seen those settings many times, but have never used them. I'll read up a bit and head down that path.

Thanks very much.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.