[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] FreeDiams 0.4 -> GNUmed

From: Eric MAEKER
Subject: Re: [Gnumed-devel] FreeDiams 0.4 -> GNUmed
Date: Mon, 2 Aug 2010 11:53:17 +0200

Le 2 août 10 à 10:23, Sebastian Hilbert a écrit :

Am Montag 02 August 2010, 09:22:44 schrieb Eric MAEKER:

The problem is the more data to be managed, the more CPU to be used.
And for now, with only 4 allergies and 2 intolerances, the GUI is
dramactically slowing down. I've done one or two adjustement to
improve this but the problem is still complete.
I'm working on it...
When ready, why not differentiate "certain intolerances" or "suspected
intolerances", the code is the same (for the drug selector).

I am curious if you could tell me what the job is the CPU is busy with. Is it doing calculations (number crunching) or is it because it has to access many
tables in the database or what is it ?

One drug at time (for all drugs that are shown in the selector):
0) if result in cache return cache (end)
1) get all molecules
2) get all ATC codes that suite the molecules
3) test allergies
  3.1) for 7 char ATC
  3.2) for < 7 char ATC
  3.3) cache result
4) test intolerances --> cache result
  4.1) for 7 char ATC
  4.2) for < 7 char ATC
  4.3) cache result



reply via email to

[Prev in Thread] Current Thread [Next in Thread]