# Getting data is fast, but Flash displaying php data is slow, why?

**URL:** <https://forum.kirupa.com/t/getting-data-is-fast-but-flash-displaying-php-data-is-slow-why/301553>\
**Category:** programming\
**Created:** [December 11, 2009, 5:13am UTC](https://forum.kirupa.com/t/getting-data-is-fast-but-flash-displaying-php-data-is-slow-why/301553 "2009-12-11T05:13:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![para2sakura](https://avatars.discourse-cdn.com/v4/letter/p/3da27b/32.png) [@para2sakura](https://forum.kirupa.com/u/para2sakura)\
**Post date:** [December 11, 2009, 5:13am UTC](https://forum.kirupa.com/t/getting-data-is-fast-but-flash-displaying-php-data-is-slow-why/301553/1 "2009-12-11T05:13:16Z")

</div>

Hi guys,

This is my first post. I have a problem in flash and php, hope you guys can help.

In my database(mysql), I have a table which has 50k data(rows/records).

I do a test using firebug, after playing the game, the call to load\_score.php and save\_score.php is around 380ms (millisecond).

The save\_score.php just a normal inserting, nothing much. The load\_score.php, I use this query:

SELECT name, score  
FROM `highscores`  
WHERE id =1  
LIMIT 0, 10

- The result returns 10 rows
- the query returns in 0.0005 seconds (tested using phpmyadmin)
- I echoed the data back to flash.

But on my game (flash), it tooks 11 seconds(count manually) to load and save the score. Why the time differences is so big?

Could it be the problem when Flash received php data, the process to display is slow?? :h::h::h:

Are there any others reasons on why the displaying take longer time??

(If you need more information, please let me know)
