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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T17:45:01+00:00 2026-06-02T17:45:01+00:00

I work with Flex and PHP. I do a query on mysql database and

  • 0

I work with Flex and PHP.

I do a query on mysql database and use php function to create xml.

The recordset may contain around 90000 rows. So generate the xml file is slow, around 50s.

I don’t want to make a dump, but only create a file to send to Flashbuilder to create a dataprovider.

I tried to use several processes:

  • DOMDocument
  • XmlWriter
  • SimpleXMLElement

But with those methods, time to create file is to slow.

Do you have another idea to accelerate process (mysql side or php side).

Thanks

  • 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-06-02T17:45:03+00:00Added an answer on June 2, 2026 at 5:45 pm

    I found a good solution: create xml file with mysql command.
    For example:

        $link = mysql_connect(DB_HOST,DB_USER, DB_PWD);
    mysql_select_db(DB_DATABASE, $link);
    
    $query = "SELECT GROUP_CONCAT(
        CONCAT('\n<rec>\n', 
                    CONCAT('\n<id>',acIndex,'</id>\n'),
                    CONCAT('<prInitiales>',prInitiales,'</prInitiales>\n'),
                    CONCAT('<acSolde>',acSolde,'</acSolde>\n'),
    
        '</rec>') SEPARATOR ' ' ) AS xml
        FROM Cutomer";
    
    $recordset = mysql_query($query, $link);
    
    $xml = mysql_fetch_array($recordset);
    echo '<list>'.$xml['xml'].'</list>';
    

    Thanks

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

Sidebar

Related Questions

I use flex to work on a scanner to replace \ with ; and
I use a unit of work pattern a lot in my flex projects. I'll
How to create and to work with custom metadata in ActionScript3/Flex?
I'm developing a Flex application that make calls to PHP scripts. All work fine
I'm looking for a good development environment in which to work on flex or
i am pretty newbie in terms of flex/RIA frameworks. mostly done work on server
work on asp.net vs 05 C#.Master page header contain the bellow code <script type=text/javascript
I'm using a PHP script to read an RSS feed in my Flex 4
I have got a simple flex client requesting some data from a php script.
I'm trying to get Flex 3 and OpenX to work together. Everything works great

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.