Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question about data DeNormalization
Message
De
27/04/2002 12:19:38
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
 
À
27/04/2002 01:23:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00647962
Message ID:
00649998
Vues:
18
Bill,

Have you run the coverage profiler on your code to see exactly what takes the longest?


>Hi Cindy,
>It is just taking too long to keep re-calculating the totals for reports. There are 3 reports that the client runs several times a day to reflect current data, they run as many as 12 different calculations. It currently takes over 2 minutes to pull the data together for the one of the reports. Since he runs the report several times, I can't wait for a batch to be run at the end of the day. I'm hoping to create something that updates the totals as the detail is being edited. There are as many as 100 detail edits each day.
>
>
>>Bill,
>>
>>Can you say more about why you need to store totals rather than re-calculating them as necessary? There is no good way to be sure they are always correct if the Details table continues to change.
>>
>>That being said, if you have a denormalized database used for reporting I can see how you might want to select the totals and store them. But then you would be taking a snapshot of your data and using the batch process you described to update it each night or weekly or something like that.
>>
>>
>>>When I need to store totals in a different table (TOTALS.DBF) than the detail (DETAILS.DBF
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform