Create object very slow

Discussions concerning general integration topics.

Moderator: Phil Barton

Post Reply
at2k21
Posts: 17
Joined: Wed Aug 16, 2017 5:33 pm

Create object very slow

Post by at2k21 »

Using code similar to below I am seeing long pauses for the server requests and I am not sure why.

Code: Select all

//... Other code above here

SelectServer server = GetSelectServer();
IOrderStore os = server.GetService<IOrderStore>();
OrderCreationSpec spec = new OrderCreationSpec()
                                        {
                                            BaseNumber = anOrder.BaseNumber
                                        };
IOrder order = os.NewOrder(spec); // Taking many seconds to return. 10+ in many cases.

//... Other code below here.
Is there some configuration I am missing or something? When I run the same code in the production environment I am seeing performance 10x slower than development. Server is running MS Server 2008 R2 Datacenter x64 with 8GB ram and plenty of hard disk. SoftPro Select version is 4.3.50811.33. Any help is appreciated.
BobRichards
Posts: 1377
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Create object very slow

Post by BobRichards »

Is the server a production server so it's already busy? I'm not sure what is going on.

The code looks fine so I'm assuming it is the environment.
Bob Richards, Senior Software Developer, SoftPro
Post Reply