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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:18:54+00:00 2026-05-25T13:18:54+00:00

I am trying the cached table feature of hsqldb version 2.2.5 . Just using

  • 0

I am trying the cached table feature of hsqldb version 2.2.5 .

Just using JDBC batch insert into one table, the odd thing is if
I run the my test alone, although I used the create cached table,
but it is still using the memory mode, because after 100,0000 records, OOM.

But if I run some other test before this test case or use jdbc:hsqldb:mem:HSQLDB;hsqldb.default_table_type=cached
, it will use cached table.

Anyway, I don’t want to use cached for default.

The cached table performance looks like this
after 2600000 records, the performance decreased a lot.
after 3600000 records, it becomes very slow

Perhaps some indexes occupies the memory fully makes the JVM becomes slow.
Not because of db itself

Two sub questions

1)Any other config to force the cached table is using cached mode?

2)Any db config will help to increase the performace of cached table?

(With JDK1.6 -Xmx1024m)

  • 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-25T13:18:55+00:00Added an answer on May 25, 2026 at 1:18 pm

    The URL that you report is for a mem: (everything in memory – no persistence) database. In this setup, any reference or setting for CACHED tables is simply ignored and the data is stored in memory.

    The CACHED table feature is available is file: (persist to disk) databases. These databases also support persistent MEMORY tables (all data is stored in memory). The data for both CACHED and MEMORY tables is stored on disk in file: databases.

    Regarding performnce of CACHED, recently used rows are cached in memory and changes are saved to disk when the cache gets full.

    The database engine uses java.nio methods to access databases that are above 16MB on disk, and below a certain limit. To improve performance, you can increase the limit with the hsqldb.nio_max_size property or the equivalent SQL statement.

    In general, disks are slow in random access mode (maximum 100 access per second). Use of cache, nio, and other strategies can reduce effective access time, but only to some extent.

    Also note you can turn data logging off during bulk inserts, and turn it on again for normal database operations.

    These issues and settings are covered in this chapter of the Guide.

    http://hsqldb.org/doc/2.0/guide/deployment-chapt.html

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

Sidebar

Related Questions

I'm trying to cache a price value using HttpRuntime.Cache.Insert(), but only appears to hold
I am trying to convert a php/mysql generated table into a downloadable csv file.
I'm trying to take values from a table and put them into a string
I am trying to load a table view from a cache very quickly and
I am trying to get the new SqlChangeMonitor feature included in the System.Runtime.Caching namespace
I'm trying to get nHibernate to use second-level cache with a many-to-one relationship, however
I was trying to implement a download link and put it beside one of
I am trying to play around with C data structure (hash table). I am
I am having trouble with a ALTER TABLE command that I am trying to
I have some trouble when trying to update a table by looping cursor which

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.