CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2017

    Question I want to execute my query in an async way

    In my application, I have a frequent, but a very long-running query to the database (PostgreSQL).
    So I want to execute my query in an async way. I haven't found how this could be done via JDBC. Is it possible?

  2. #2
    Join Date
    Feb 2017

    Re: I want to execute my query in an async way

    I've heard about some async drivers (, though:
    a) they're not jdbc-compatible
    b) I have no experience in it.
    Anyway, I think the solution could be more simplified. You just create another thread, that would run the query and get the data from the database. After the result is ready, you could show it in your main app thread.
    Also, if you have difficulties with this you can contact These guys participated in the creation of alternative JDBC driver (, so they may help you.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width