discuss-gnustep
[Top][All Lists]
Advanced

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

Re: [Q] Question on GDL2


From: David Ayers
Subject: Re: [Q] Question on GDL2
Date: Fri, 26 Mar 2004 12:16:58 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113

NeXT wrote:
Hmm, I think the data is not cached, but yes, after some testing, the
 data is cached. So, here comes another question ? :-) How one
process can notify other processes, a data is changed so the cached
data should be updated or refetched ? Through distributed
notification? Or automatically done?

There is no automatic syncronization between different processes running on the same machine or subnet. Eventhough that may be a neat feature (as long as it's off by default).

You could use distributed notifications and EOGlobalID's of changed objects to syncronize process by invalidating them in the other processes which will then refetch them from the database.

And though caching is done, raw
mysql query and fetch result is faster... seems very strange. If I recache the data using NSDictionary, it's very fast... Why EOF cache
is slower than simple NSDictionary... ?

I'm not sure exactly what you are comparing, but when an EOEditingContext fetches objects, there's a bit that goes on behind the scene. Now whether that is useful or relevant for your case, is another question.

I would be intersted on what you are timing exactly and how much slower GDL2 is. Consider that there is an abstraction overhead. Don't expect GDL2 (esp. using EOEditingContext) to be as fast as any native API. Do expect it to be useful.

Please give me some more data to work with, too see what your bottle neck is. I know there is lots of roome for optimization. But I'd rather do it on concrete examples.

Cheers,
David





reply via email to

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