Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3611010
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T21:49:27+00:00 2026-05-18T21:49:27+00:00

We have an WCF application which uses NHibernate to query data from the database.

  • 0

We have an WCF application which uses NHibernate to query data from the database. After installing the application into a new test environment we’re facing some performance problems with queries. Our old and new environment use different Oracle-servers but both of the databases have the same data.

We have went through our NHibernate logs and identified the problematic part:

2010-12-02 07:14:22,673 NHibernate.SQL                 - SELECT this_.CC...
2010-12-02 07:14:22,688 NHibernate.Loader.Loader       - processing result set
2010-12-02 07:14:27,235 NHibernate.Loader.Loader       - result set row: 0

In this case the query returned one row. But it seems that in our new environment the “processing result set” is taking much longer (5 seconds vs 0.5 seconds) than in our other environment. Is there some way to find out exactly what inside the “processing result set” is taking so long?

Note. Executing the same exact query directly into the DB with Toad doesn’t reproduce the problem. With Toad, both database server are equally fast.

We are using DetachedCriteria to create the query and then it is executed like this:

        Dim criteria As ICriteria = crit.GetExecutableCriteria(GetSession())
        Return New Generic.List(Of T)(criteria.List(Of T))

The version of NHibernate is 2.1.2.4 and we’re using ActiveRecord 2.1.0 to create the mappings. Oracle servers are of version 10g.

So in our case we have two environments that have the same version of the application with identical configuration files and are querying against identical databases, but which have different application and oracle servers. In one environment querying through the NHibernate takes around 5.5 seconds and in the another 0.5 seconds. The results are consistent and the same query has been executed around 50 times to both environments.

Is there something in the Oracle configuration which could cause it to misbehave with NHiberate? And is there a way to get more detailed logging out from NHibernate so that the exact problem inside the “processing result set” could be found?

Any advice is greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T21:49:27+00:00Added an answer on May 18, 2026 at 9:49 pm

    We were able to fix our problem by switching the database drivers from Microsoft’s to Oracle’s ODP.net. Now, both servers are equally fast and even our previously fast server executes the queries much more rapidly. We don’t know what setting in our new server made the Microsoft’s Oracle driver so slow.

    And it seems that Microsoft is nowadays recommending everyone to use something else than their own Oracle-drivers. http://blogs.msdn.com/b/adonet/archive/2009/06/15/system-data-oracleclient-update.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have silverlight 2.0 application and which uses WCF service to get data and
I have client application that uses WCF service to insert some data to backend
I have a Data Service created using WCF that internally uses nHibernate. This WCF
I have an application which is used internally and uses WCF for communication between
I have a silverlight application that uses wcf service. This application is shown from
I have a Silverlight application in which I would like to call a WCF
I have a selfhosted WCF service application which I want to deploy by a
I have a client/server style application which communicates using WCF which all works great.
I have this WCF application which is hosted as a windows service. This service
I have an application which consumes a WCF Service. I have no access to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.