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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:41:32+00:00 2026-06-12T14:41:32+00:00

Suppose you are running a series of queries on a database (sqlite in this

  • 0

Suppose you are running a series of queries on a database (sqlite in this case) using Node.js. You know these queries may take a while to process and you want the client to update as the results come in. That is, you want to push the results to the client asynchronously, and then update the DOM.

I THINK I can cobble together a way of doing this using Faye (or some other comet system), JavaScript templating, and maybe Knockout.js. But is there already a framework or tool for doing this kind of thing?

Or is this just the wrong approach?

  • 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-12T14:41:33+00:00Added an answer on June 12, 2026 at 2:41 pm

    In previous projects I have used Socket.IO which makes pushing changes to clients easily. An example would be something like:

    Server Code:

    socket.emit('ranQuery', { info: 'Info From Server!' });
    

    Client Code:

    socket.on('ranQuery', function(data) {
        console.log(data.info); // would output "Info From Server!"
        // update the DOM with the new information
    } 
    

    There are plenty of working examples on their website. It can be installed like any other node package, npm install socket.io.


    Update:

    After opening and reading the links you posted I’d say your approach is correct. Though I’ve never heard of Faye it seems to do similar things as Socket.IO (sending objects from the server to the client), and KnockoutJS will handle the data binding (when you update models, it will update on the page as well). I’d say go for it and post questions here if you hit any snags.

    The only reason I brought up Socket.IO was it’s ease of use and documentation. I recently started a project using AngularJS + Socket.IO. If you’re going to be making a lot of changes on the client side based on Frequent updates from the server, you may want to have a look at AngularJS as well and mess around with the examples on their website.

    If you think that this will work for you, visit this blog post (http://briantford.com/blog/angular-socket-io.html) for a really great guide on getting AngularJS to work nicely with Socket.IO

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

Sidebar

Related Questions

Say suppose I am running a java program through command line. And this program
Suppose we have multiple sites (using sites-framework of Django) running on the same django
I been Using EventMachine for quite a while a know and I really found
Suppose I have ten cron jobs running in parallel which fetch entries from database
Suppose you have an animation running with a certain time like this: $('span').animate({opacity :
Suppose we have a BASH script running some commands in the background. At some
Let's suppose we have an open source project running in a server. Is there
Suppose you have the following function foo . When I'm running a for loop,
I'm running a Hadoop job using Hive actually that is supposed to uniq lines
Suppose I'm running several servers serving basic requests on my local network (say a

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.