Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 6220 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi, again.

OK, so I'm still building this financial trading DB.

It's now occurred to me that a 'historical performance' functionality would be very attractive.

As a new month (or even day) begins, various performance values of the trader's account are logged to new, waiting fields, allowing all manner of comparative studies to calculate against still-stored previous months' totals.

But how do I capture, say, a trader's nett profit/loss on a monthly basis, automatically?

Any help appreciated,

Thanks

Posted (edited)

Generally, you should not "store" calculated data - so on that basis the historical data should be recalculated whenever you need it (unstored calcs).

However, one of the reasons for storing calc'd data (aka denormalising data) is performance gains when you have very large volumes of data.

That is to say, if you have a very large amount of data, it may be more effective to store the updated historical data on the incidence of each new transaction (ie moves the overhead of the calculation to when the tx occurs rather than all in one go when you need the historical data).

But, once you denormalise data you have to make decisions as to how the denormalised data will be maintained (scripting can be fragile)

And, you have to have routines that will check/fix the denormalised data if the something untoward happens in the database and the data becomes corrupted/incomplete.

I would add that you will find it difficult to envisage all of the denorm'd requirements at the outset (especially when the project is being built as you go) which would also necessitate constant amendments to the denormalisation scripts.

So in short, unless you have large volumes of data - probably better to recalc when you need the comparatives etc.

HTH

Simon

Edited by Guest

This topic is 6220 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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