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

  • SEARCH
  • Home
  • 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 3985574
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:54:24+00:00 2026-05-20T05:54:24+00:00

I am developing an application with Fluent nHibernat/nHibernate 3/Sqlite. I have run into a

  • 0

I am developing an application with Fluent nHibernat/nHibernate 3/Sqlite. I have run into a very specific problem for which I need help with.

I have a product database and a batch database. Products are around 100k but batches run in around 11 million+ mark as of now. When provided with a product, I need to fill a Combobox with batches. As I do not want to load all the batches at once because of memory constraints, I am loading them, when the product is provided, directly from the database. But the problem is that sqlite (or maybe the combination of sqlite & nh) for this, is a little slow. It normally takes around 3+ seconds to retrieve the batches for a particular product. Although it might not seem like a slow scenario, I want to know that can I improve this time? I need sub second results to make order entry a smooth experience.

The details:

  • New products and batches are imported periodically (bi-monthly).
  • Nothing in the already persisted products or batchs ever changes (No Update).
  • Storing products is not an issue. Batches are the main culprit.
  • Product Ids are long
  • Batch Ids are string
  • Batches contain 3 fields, rate, mrp (both decimal) & expiry (DateTime).

The requirements:

  • The data has to be stored in a file based solution. I cannot use a client-server approach.
  • Storage time is not important. Search & retrieval time is.
  • I am open to storing the batch database using any other persistence model.
  • I am open to using anything like Lucene, or a nosql database (like redis), or a oodb, provided they are based on single storage file implementation.

Please suggest what I can use for fast object retrieval.

Thanks.

  • 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-20T05:54:25+00:00Added an answer on May 20, 2026 at 5:54 am

    You need to profile or narrow down to find out where those 3+ seconds are.

    Is it the database fetching?
    Try running the same queries in Sqlite browser. Does the queries take 3+ seconds there too? Then you might need to do something with the database, like adding some good indexes.

    Is it the filling of the combobox?
    What if you only fill the first value in the combobox and throw away the others? Does that speed up the performance? Then you might try BeginUpdate and EndUpdate.

    Are the 3+ seconds else where? If so, find out where.

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

Sidebar

Related Questions

I'm developing an application targeting .NET Framework 2.0 using C# for which I need
In the current application I'm developing I'm using Fluent NHibernate to configure NHibernate for
I'm developing application with NHibernate EntityMode.Map so I have entities of IDictionary without cs
I have heard that when developing application which uses a database you should do
i am developing application which point towards the particular location, i have calculate angle
i am developing application and i have set some html control which are runat=server
I am developing an application in which I have to check whether a link
I am developing an application, and have URLs in the format www.example.com/some_url/some_parameter/some_keyword . I
I am developing an application using MVC Preview 5. I have used typed views.
I am developing application application using C++ VS 2008. Now I need to either

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.