473,396 Members | 2,093 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Slow website after some time (with ajax interval of 10 seconds)

Hi. I have created a Hotel Management System which is loaded with scripts especially ajax.

The main interface comprises of checked in guests which is being updated/refreshed every 10 seconds.

The reason for that is to inform the user (cashier) that a guest's stay is over.

The problem is, when I have 80 or more rows (checkin), the system slows down. It's consuming a lot of memory.

My resolution was to upgrade the RAM to 6GB and increase the cache size of google chrome to 200MB.

Unfortunately, the problem still exists.

I appreciate your help and time. Thank you.

PS I attached an image of the user interface.
Attached Images
File Type: jpg Capture.jpg (66.7 KB, 112 views)
Mar 2 '14 #1
3 1239
Dormilich
8,658 Expert Mod 8TB
do you have an AJAX request for each row? or do you get all the updated data in one request?
Mar 2 '14 #2
Hi Dormilich. Thanks for spending your time helping me with this.

The function contains a lot of ajax requests but the data is not requested per row.

Here's the code for your reference. THanks.

The function starts from Line 9 to 158.

https://www.dropbox.com/s/azi51w0pzp69kgh/checkin.php
Mar 3 '14 #3
Dormilich
8,658 Expert Mod 8TB
the problem I see is line #76. each time the getContents() function runs, you add another click handler.
Mar 3 '14 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: G Matthew J | last post by:
interesting "signal vs. noise" blog entry: http://37signals.com/svn/archives2/whats_wrong_with_ajax.php
5
by: BOOGIEMAN | last post by:
I want to put my console application to wait some time (for example 10 seconds) How do you do that ? Also, how does "Press any key to continue" code look like in C# ? If it helps, I can post here...
2
by: Randall Parker | last post by:
I'm using this: MyDateTimeStr = MyDateTimeVal.ToString("MM-dd-yyyy hh:mm:ss tt"); in C# to convert what I read from a form submit. What I want is something more flexible where the minutes and...
4
by: jhcorey | last post by:
I'd thought I'd try to save myself some time. I'd like to create a page where the contents of a dropdown get refreshed based on a selection from another dropdown. I might actually have 7 or 8...
5
by: Cacho | last post by:
Hi I'm new to Ajax but I've used javascript from time to time. Now, I've a java application that will generate a page with data in a table. I want to make a link in each row so when user click...
3
by: Torben Laursen | last post by:
I have a COM shared add-in written in C# that I use in Excel. One of the thinks that the user can do is to open some winforms. The problem that I have is that the first time the user opens a...
7
xNephilimx
by: xNephilimx | last post by:
lHi guys! I'm having a little problem that's getting on my nerves, I couldn't find a solution, I also tryed googling it and I found nothing... (my field of expertise is in AS 2 and 3, but I still...
0
by: balach | last post by:
hi all, i am using this code to initialize and assign it to a process, i am calling a thread on every 10 Seconds to fire vbscript file, this activity is performed on "timer1_Tick( )" event and...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.