Quantcast

How Many Rows of Data to Use with Spry

Get the WebProNews Newsletter:


[ Business]

Bob sent in an interesting email to me:

Ray, we’re about to use spry on one of our sites but i was wondering what you would recommend to be the max records to return in the XML? We may have 2,000 records returned at a time (in a directory format)?
Do you have any performance tips etc.

When it comes to determining how many rows of data should be returned, you can’t just focus on the number of rows. You must also consider the size of each row. So imagine a set of XML that had one column per row:

<people>
<name>Jack Abbot</name>
<name>Victor Newman</name>
<name>Nick Newman</name>
</people>

In the example above the XML only contains the person’s name. If it contained other information (gender, age, marital status, salary, etc), then the size of the XML dramatically increases with each row.

So the first thing you want to do is get a gut feeling for the size of your rows.

Next you want to figure out how long its taking for the browser to load your XML.

The best tool for that (well, for Firefox users) would be Firebug. It lets you trace AJAX requests.

This includes the URL, the response, and important to you in this post is the time it took to load. If you can’t use Firebug, you should also look at ServiceCapture.

I actually use them both as ServiceCapture is great for monitoring Flash Remoting requests.

One of these days I’m going to get together a simple demo showing how to combine client side paging and server side paging to handle very large data sets in Spry.

Comments

Tag:

Reddit | Furl

Bookmark WebProNews:

Raymond Camden, ray@camdenfamily.com
http://ray.camdenfamily.com

Raymond Camden is Vice President of Technology for roundpeg, Inc. A long
time ColdFusion user, Raymond has worked on numerous ColdFusion books
and is the creator of many of the most popular ColdFusion community web
sites. He is an Adobe Community Expert, user group manager, and the
proud father of three little bundles of joy.

How Many Rows of Data to Use with Spry
Comments Off
About Raymond Camden
Raymond Camden, ray@camdenfamily.com
http://ray.camdenfamily.com

Raymond Camden is Vice President of Technology for roundpeg, Inc. A long time ColdFusion user, Raymond has worked on numerous ColdFusion books and is the creator of many of the most popular ColdFusion community web sites. He is an Adobe Community Expert, user group manager, and the proud father of three little bundles of joy. WebProNews Writer
Top Rated White Papers and Resources

Comments are closed.

  • Join for Access to Our Exclusive Web Tools
  • Sidebar Top
  • Sidebar Middle
  • Sign Up For The Free Newsletter
  • Sidebar Bottom