Question about server side pipelining

Question about server side pipelining

eyre.michaeleyre.michael Posts: 21Questions: 0Answers: 0
edited March 2011 in General
I have gotten the server side pipelining working, using the code in the examples. It works great. I am wondering if there is a way to perform the ajax call before you get to the end of the pipe. For example, you have the pipe set to 5. The user clicks on the next button 3 times. After the third click, the server gets hit again and gets the next 5 sections and add it to any sections that are already there.

Is this something that is possible? I am having a lag to the server of about 3 seconds and I want to try and minimize the lag by getting the next section of the pipe before a user is finished with the current pipe and append it on the end.

Thanks

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    That's a really nice idea for an enhancement to the pipelining - thanks! I've made a note that I should try and do this (and possibly make pipelining a proper plug-in) unless someone beats me to it... But at the moment, as the code stands there is no way of doing this - it would require some modification.

    Allan
  • eyre.michaeleyre.michael Posts: 21Questions: 0Answers: 0
    Thanks. I will probably just change the screen when the database is getting hit again, so the user does not wonder what is happening. I am also looking at ways to make everything work faster, so there isn't much delay.
  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    The processing option ( http://datatables.net/usage/features#bProcessing ) might be one option you could consider to show that something is happening. It can be styled to whatever you want using CSS.

    Allan
  • eyre.michaeleyre.michael Posts: 21Questions: 0Answers: 0
    Thanks for the tip. I will try and use that.
This discussion has been closed.