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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:39:41+00:00 2026-06-05T07:39:41+00:00

I receive input from a MS SQL SELECT query using the tedious driver. I

  • 0

I receive input from a MS SQL SELECT query using the tedious driver.

I have attached a listener to the “row” event of the reader:

request.on('row', function(columns) {
     insert_row_other_db(columns);
});

I am writing the results to another database in the insert_row_other_db function.

But the rows arrive much faster than they can be written, and I want to open only one connection. What is a good way to de-asyncronyze the writes to the other db? I would like to write the rows one after the other.

  • 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-05T07:39:43+00:00Added an answer on June 5, 2026 at 7:39 am

    Assuming you are able to receive a callback when insert_row_other_db completes, you can use the Async library to create a queue that you can use to schedule your inserts. The queue has a concurrency setting that allows you to limit the number of tasks that can run at once.

    var async = require("async");
    
    var insertQueue = async.queue(function (columns, callback) {
      insert_row_other_db(columns, callback);
    }, 1);
    
    request.on("row", function (columns) {
      insertQueue.push(columns);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have SQL query like SELECT *, dbo.func(@param1, a.point) as fValue FROM dbo.table AS
I have a UITextView field meant to receive input from a keyboard. But the
I receive a string from a database query, then I remove all HTML tags,
I receive input from the microphone and I apply the fft on it. After
I'm writing a program that needs to receive input from a NMEA GPS device.
I receive input from the server in the following manner (sample input data): [1284336000]:
I'm trying to receive input from a java dialog and I can't seem to
I would like to receive user input from a JavaScript prompt box, save the
I've got a system that needs to receive input from a few different processes.
I have a system that receives input from the public each day. Each morning

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.