New Posts New Posts RSS Feed: Saving / Querying slow
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Saving / Querying slow

 Post Reply Post Reply
Author
smi-mark View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 24-Feb-2009
Location: Dallas, Texas
Posts: 343
Post Options Post Options   Quote smi-mark Quote  Post ReplyReply Direct Link To This Post Topic: Saving / Querying slow
    Posted: 15-Jul-2010 at 10:37am
I'm experiencing a strange issue with a DevForce 2010 app. Under visual studio in debug/release mode, and from the bin directory, everything works fine.

When running from the setup release, querying seems to take longer, and saving takes forever. Saving one small record can take between 5-10 seconds.

It looks like it is to do with the probing of assemblies.

This is from the setup release:

http://privatepaste.com/1207d08441

This is from my bin folder:

http://privatepaste.com/0b65ae2d43

You can see a HUGE difference between the two, and I'm not sure why.

If you have any suggestions, I would LOVE to hear them.

Thanks,

Mark
Back to Top
ting View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 27-Mar-2009
Location: San Francisco
Posts: 427
Post Options Post Options   Quote ting Quote  Post ReplyReply Direct Link To This Post Posted: 15-Jul-2010 at 5:30pm
Yes, we may still have a MEF assembly probing issue. Try adding thses lines to control probing:
 
using IdeaBlade.Core.Composition;
 
CompositionHost.SearchPatterns.Clear();
CompositionHost.SearchPatterns.Add("DomainModel.dll");  //  Add whatever assemblies you need probed
 
Back to Top
smi-mark View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 24-Feb-2009
Location: Dallas, Texas
Posts: 343
Post Options Post Options   Quote smi-mark Quote  Post ReplyReply Direct Link To This Post Posted: 16-Jul-2010 at 1:10pm
Hi Ting,

This hasn't made a difference. I've put it in my application startup, does it need to be done somewhere else? I will play around and see what I can find.

Thanks,

Mark
Back to Top
smi-mark View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 24-Feb-2009
Location: Dallas, Texas
Posts: 343
Post Options Post Options   Quote smi-mark Quote  Post ReplyReply Direct Link To This Post Posted: 16-Jul-2010 at 1:16pm
FIXED IT!

CompositionHost.SearchOption = IO.SearchOption.TopDirectoryOnly

along with the above suggestion has solved it!! :)
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down