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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T11:55:07+00:00 2026-05-15T11:55:07+00:00

I am using Datanucleus JDO on top of HSqlDb. I would like to execute

  • 0

I am using Datanucleus JDO on top of HSqlDb.

I would like to execute the following SQL statement to tell HsqlDb to set the write delay to 0:
“SET WRITE_DELAY 0”

Is there a way I can do this from a JDO PersistenceManager or a PersistenceManagerFactory?

On a sidenote: I have tried to modify write_delay by using the following connection URL:
jdbc:hsqldb:file:data/hsqldb/dbbench;write_delay=false

It didn’t work. I debugged the HsqlDb sources and I could still see the write delay being set to 10 seconds.

  • 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-15T11:55:08+00:00Added an answer on May 15, 2026 at 11:55 am

    I think I have found a solution that will work for me:

    public PersistenceManager getPersistenceManager() {
        PersistenceManager persistenceManager = 
            _persistenceManagerFactory.getPersistenceManager();
        JDOConnection dataStoreConnection = 
            persistenceManager.getDataStoreConnection();
        Object nativeConnection = dataStoreConnection.getNativeConnection();
        if(! (nativeConnection instanceof Connection) ){
            return persistenceManager;
        }
    
        Connection connection = (Connection) nativeConnection;
        try {
            Statement statement = connection.createStatement();
            statement.executeUpdate("SET WRITE_DELAY 0");
            statement.close();
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return persistenceManager;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using DataNucleus' implement of JDO on a local H2 database. I want
i am using gwt with jdo datanucleus. i have requirement to get child with
I am using Guice with JDO and Datanucleus in my desktop app. I am
Using Rails 3.2.0 with haml and sass: I Would like to link an external
I am using DataNucleus' implementation of JDO to populate a table on a local
I am using DataNucleus's implementation of JDO on an H2 database instance opened in
Assuming one has an operational Java application using DataNucleus's implementation of JDO to access
I am trying to write a small application to use DataNucleus' JDO implementation on
I use ANT to run my JDO application example implemented using Datanucleus solution. When
I am using DataNucleus 3.0.0-release JDO implementation to connect my Java app to MongoDB.

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.