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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:35:23+00:00 2026-06-13T00:35:23+00:00

I experienced a huge performance difference between android 2.3.4 and 4.0.3 on HTC Sensation.

  • 0

I experienced a huge performance difference between android 2.3.4 and 4.0.3 on HTC Sensation.

Some additional information:

  • ormlite version 4.42
  • to getting dao I use DaoManager and a dao singleton.
  • using batch task to insert
  • I’m trying createorupdate 30 objects (only creating takes the same time)
  • These are single objects (without relations), but have long string fields.

Time logs:

ICS (4.0.3)

10-16 09:17:06.206: 1 getting dao
10-16 09:17:06.206: 2 got dao
10-16 09:17:06.206: 2 start call batch task
10-16 09:17:06.216: 3 start initializing batch_task
10-16 09:17:06.326: 121 finished initializing batchtask  
10-16 09:17:06.836: 623 end batch task

2.3.4

10-16 09:20:00.355: 0 getting dao
10-16 09:20:00.355: 1 got dao
10-16 09:20:00.355: 1 start call batch task
10-16 09:20:00.355: 1 start initializing batch_task
10-16 09:20:00.435: 87 finished initializing batchtask  
10-16 09:20:00.445: 96 end batch task 

As you can see on ICS takes creating much more time.

What should I do to get the similar performance on ICS?

  • 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-13T00:35:24+00:00Added an answer on June 13, 2026 at 12:35 am

    So after some back and forth in the comments, it turns out that the performance differences in Android ICS may be due to the fact that by default, in that version, SQLite may be running in “TRUNCATE” journal mode. From the Sqlite docs:

    The TRUNCATE journaling mode commits transactions by truncating the rollback journal to zero-length instead of deleting it. On many systems, truncating a file is much faster than deleting the file since the containing directory does not need to be changed.

    2.3.4 in comparison runs it in Write-Ahead-Logging (WAL) mode. I guess WAL is faster.

    To change the journal in ORMLite, you’d do (I guess) something like the following:

    someDao.rawExecute("PRAGMA journal_mode = WAL;");
    

    See the Sqlite PRAGMA docs for more examples.

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

Sidebar

Related Questions

I'm an experienced programmer and android user. I'm following a guide for creating the
I am not much experienced in boost::asio . I've some pretty basic questions. Do
does any of you have some experience with compressing huge file in PHP using
I'm currently working on a project that's based on Android. Without getting into many
I found out, while shoulder surfing some other - much more experienced programmers -
We are a company, working on small and some huge project. Sometimes on one
From my experience with DB2 on Z/OS there is no difference between embedded SQL
I experienced with JQuery and new to YUI. I'm looking for YUI's equivalent of
I experienced OutOfMemory exception in my code, so I am reviewing the code. I
Background: Experienced PHP developer with a mostly *nix background. I'm writing a PHP application

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.