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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:57:44+00:00 2026-06-16T20:57:44+00:00

I am in process of developing an MFC based Windows based application, using PostgreSQL

  • 0

I am in process of developing an MFC based Windows based application, using PostgreSQL which would perform

  1. Fetches information from the UI
  2. Performs some logic and store related information to the database
  3. The stored information has to be send immediately OR at schedule interval (ex. at 5:00 on xyz date) over the network

Currently, we have developed a dispacher mechanism (thread ), which constantly polls the database for new information inserted in the database. The thread fetches the information and send to the network module.

But, I feel this is not the correct approach as

  1. Polling every time is a overhead. There can be times when there is nothing to execute
  2. It is not real time , because we poll after every 5 seconds

So

  1. Is there a way to send a trigger to my network module as soon as information is updated in database?

  2. Or any better way to achieve this task?

Thanks in advance.

  • 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-16T20:57:46+00:00Added an answer on June 16, 2026 at 8:57 pm

    Yes you are right @RDX, you shouldnt poll it every time rather you could write a trigger in Postgres and from that trigger try calling a java program which could be seen in the below thread.

    Calling java pgm from Postgres trigger

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

Sidebar

Related Questions

I'm developing a C++ application with process monitoring capabilities, which monitors state changes based
We're currently in the process of developing a web-based application which will require the
I'm in the in the process of developing an application for a client, which
I am in the process of developing an application (i.e.: base apk) which is
I am in the process of developing a .NET application which relies on an
I am developing a Windows forms application which connects to a piece of hardware,
We're in process of developing a desktop application which needs to record user's screen
I'm looking into developing an application that will process data from a line-scan camera
We're in the process of developing a new desktop application for a customer which
I am in the process of developing a application which displays dialogs depending on

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.