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 8171267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:24:38+00:00 2026-06-06T21:24:38+00:00

i am rowking on a play framework project and a part of my project

  • 0

i am rowking on a play framework project and a part of my project requies to insert large amounts of data in given time intervals.

I have 2 problems in here:

1- I need to finish bulk inserting sa fast as i can
2- When bulk insert jobs are running, it heavily affects my server response times. I dont know its a problem in play-framework or mine.

heres my current bulk-insert code:

      org.hibernate.Session session = 
            (org.hibernate.Session)SomeEntityModel.em().getDelegate(); 
  Transaction tx = session.beginTransaction();
  int i = 0;
  for(Inventory o:inventories)
      {
        returnList.add(SomeEntityModel.getInstance(o));
          i++;
          if(i%100==0)
          {
              tx.commit();
              session.flush();
              session.clear();
              tx=session.beginTransaction();
          }
      }

the getInstance model converts the “o” object to an entity model .

the “o” Objects are coming from a webservice in bulk, and i convert them to “SomeEntityModel” then save it in getInstance method.

I need to know if there is a better and faster way to accomplish bulk insert methods and if there is a better way to use or optimize server response times when jobs are running.

Thanks for helping.

  • 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-06-06T21:24:39+00:00Added an answer on June 6, 2026 at 9:24 pm

    Have you had a look at Akka? It has strong support in Play 2.0 (and module support in Play 1.x if that is what you are using). Akka is designed as high performance concurrency package which one of the use cases is Batch/Bulk.

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

Sidebar

Related Questions

I have the following XML data which is generated by a webservice <?xml version=1.0
I have to use a jpa project on one of my projects, but I'm
I have python project that runs on multiple machines. I am using virtualenv to
I have a problem with printing my data. In my program, i get the
I have the following xml which i want to filter to show only data
I'm new with OpenCL and have some problems with the array additions I use
I'm developing a project on Google AppEngine, using Django templates, so I have to
I have the following XML sturture in my project. I need to write somthing
In my project I have to print JTable components in a pdf with all
I have a text file called db.txt. Some sample lines from the file goes

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.