Jump 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.

Separate reports file?

Featured Replies

I'm currently developing an inventory and POS system, and I have a few files that store the financial transactions: purchase (inventory reduction), orders (inventory increase), and one for miscellaneous financial transactions (supplies, copies, donations, etc.). I've created a reports file to show the end-of-month and YTD financial summary, which is related to the above files. But, I would like to show a monthly purchase summary, and I'm not sure if this should go in the reports file or the purchase file. Since these two reports are different from each other, my sense is that if they both go in the reports file each report will have a bunch of extra fields that don't pertain to it, which probably isn't good database design.

So, my general question is, should reports go in a separate file or the file that has all/most of the data? Or is there a rule of thumb for when a report should be in a separate file?

Main factors I consider:

1) what are the relationships between the files the info is in? (1-to-many, many-to-many, etc.)

2) how hard is it to process information from this file vs from other files?

One generality: if the relationship from file 1 to file 2 is one-to-many, I usually put the report in file 2.

Modern DBs store data using sparse array techniques. A record with most fields empty occupies less memory and disk space than one with data in most fields. So extra fields do not radically increase resource usage. However, making a separate file to store this one-to-one related data actually increases resource usage because of extra disk thrashing, memory usage, and CPU time resolving relationships.

Conclusion/general rule: When reports share the same relationships to other files, put them in the same file.

Create an account or sign in to comment

Important Information

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

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.