Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [dali-dev] quickly getting a list of Entites

Hi Neil,

Returning to this hijacked thread :)

While I'm sure there is some delay associated with initializing the Dali plugins, this appears to be separate from that. I have about 10 projects in my workspace, and once my workspace is open, if I go to each one and call:
   JpaModelManager.instance().getFilledJpaProject(project)
there is a noticeable delay that averages about 10 seconds the first time I call this method on each project. Even if there are no entities in the project, it still takes 5-7 seconds. The Dali team may not run into this as much, since in my case we are calling this method outside of the Java editor from an external wizard; so it may be a different code path. But the delay can be pretty noticeable to the user in our wizard case. It doesn't really seem to be an issue of "priming" the plugins; I'm wondering if when this method is called outside of the editor, performance could be improved if perhaps some notifications could not be sent (such as any property view events, etc, since they would not be applicable). I'm sure performance isn't the highest priority right now, but this may be one area that can be looked at at at some point.

All this said, returning to the subject line, I'm assuming that getFilledJpaProject() would still be considered the best way to retrieve the entities in the project?


Thanks
Tom



Neil Hauge <neil.hauge@xxxxxxxxxx> Sent by: dali-dev-bounces@xxxxxxxxxxx
06/05/2007 05:23 PM
Please respond to
neil.hauge@xxxxxxxxxx; Please respond to
"General Dali EJB ORM developer discussion." <dali-dev@xxxxxxxxxxx>


To
"General Dali EJB ORM developer discussion." <dali-dev@xxxxxxxxxxx>
cc

Subject
Re: [dali-dev] quickly getting a list of Entites






Hi Tom,

We are wondering if the delay on your first access is related to our plugins being (lazily) loaded, in addition to filling the model. What type of delay are you seeing with your first query for the entities?

I'm hoping that a model fill for 3 entities would be pretty quick, but if it also requires plug-in initialization, that could be the cause of the delay. You might need to prime the plugins at an earlier point to get a better response in your UI, but this is just a theory.

Neil

Tom Mutdosch wrote:




Back to the top