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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:10:02+00:00 2026-05-16T23:10:02+00:00

I just started using datatables (java script) for tabular data, due to js I

  • 0

I just started using datatables (java script) for tabular data, due to js I am able to use functionalities like search, how many rows per page, sorting and pagination.
Before using js, I was simply showing data in table(used Ajax for pagination), but unable to use above functionalities (Performance in this case was good).
Now I am using jquery.dataTables.js and jquery.js files for the table structure. But problem is that this has badly hammered the performance of site, initially all the script was under one page only, then firefox was giving warnign message as “Unresponsive Script”, then I just created separate file for the table, then I stopped getting this message but poorer performance.
What I do is, fetch data from API, store it into database and then show it, but js is taking lot of time, sometimes it simply doesn’t show the table when there is thousands of data.
I really need to use js for table but can’t afford this poor performance.
Has somebody got this problem before?
waiting for valuable advice.

  • 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-05-16T23:10:03+00:00Added an answer on May 16, 2026 at 11:10 pm

    You cannot efficiently store and manipulate thousands of rows of data in Javascript. Database engines such as MySQL have all sorts of gubbins (indexes, caches), to speed up searching (queries). Javascript has none of this, and you can optimize your method of storage and searching algorithms as much as you want, but you will never accomplish an efficient solution.

    Pagination should be on the server. The server sends you 30 rows of data, when you want more, you request more from the server; usually in the form of either a new page load to replace the current contents with another set of results, or an AJAX request to append/ prepend the new content to the existing.

    When you want to search the data, using Javascript is fine for searching within the content you have on the page (~10’s of rows), but for searching the whole dataset, send the query to the server and let your database engine do the work.

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

Sidebar

Related Questions

I just started using the new Eclipse 4.2 (Juno) Null Analysis. On code like
I'm just getting started using ADO.NET and DataSets and DataTables. One problem I'm having
Just started using Java (for Android, if that matters) and all I want is
Just started using soapUI and I like it a lot. In a particular case
I just started using Twitter Bootstrap http://twitter.github.com/bootstrap/scaffolding.html and I'm looking for the grey/blue navbar
I just started using Eclipse but already I have a small problem. At first
I just started using rapidxml. I 1st create an xml file to read from.
I just started using Scala and Spec2. However, I'm a little bit confusing of
I just started using/learning Python and have some questions. I have a text file
I just started using mysqli API for PHP. Apparently, every time an object of

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.