Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D092C200B82 for ; Fri, 2 Sep 2016 07:02:17 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C500C160AB7; Fri, 2 Sep 2016 05:02:17 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1821E160AB5 for ; Fri, 2 Sep 2016 07:02:16 +0200 (CEST) Received: (qmail 95919 invoked by uid 500); 2 Sep 2016 05:02:10 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 95907 invoked by uid 99); 2 Sep 2016 05:02:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2016 05:02:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id C7A05CC177 for ; Fri, 2 Sep 2016 05:02:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.992 X-Spam-Level: ** X-Spam-Status: No, score=2.992 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_REPLYTO_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.com.au Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id X9KY_4rV7pOa for ; Fri, 2 Sep 2016 05:02:06 +0000 (UTC) Received: from nm11.bullet.mail.ne1.yahoo.com (nm11.bullet.mail.ne1.yahoo.com [98.138.90.74]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id DCA145F4EE for ; Fri, 2 Sep 2016 05:02:05 +0000 (UTC) Received: from [98.138.100.117] by nm11.bullet.mail.ne1.yahoo.com with NNFMP; 02 Sep 2016 05:01:59 -0000 Received: from [98.138.226.162] by tm108.bullet.mail.ne1.yahoo.com with NNFMP; 02 Sep 2016 05:01:59 -0000 Received: from [127.0.0.1] by omp1063.mail.ne1.yahoo.com with NNFMP; 02 Sep 2016 05:01:59 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 460997.84549.bm@omp1063.mail.ne1.yahoo.com X-YMail-OSG: Nxui8QAVM1meSJ5580FTCzX_8bE_A2GFunZocn613PE75Q_PNxg7KSfEH4XAtDU Ut404O6n_evuMjR5BWhQLma6a.CMws1YwN2WChkcwKhVpPQ3FoX694k0Q0flhw7iso5OVC6P.Luj wmQQIF7Wc034gqKsoJl_jvg8lf9mKvSAh7K_FLYyKFLQfEu.HqNePY2y7l0OaSv_wRxP3er6CdIR 5AObDkg7TCPhlyWRlPGpQfOnVnH7YE2YORRhqvtjMq5X4jODS_RfFgFzReqLYrfQNSQxrYs8dOw5 xpZwDFsaCNexVBCxoZhiLoOqlTilMCDv.agpfYBD1wKKiejlMBzSl4V1gW7vEtnTzacz.RYyTPeo kuRHCWn9EJzYQ8Kn5puNuuZlC3j8ghMA_ZVveIEg8QkogCz8F8QPGrfXmduH9tOLqJSZCBIydIRr ctIO3aIIJ1t9NAyGYnue7bSQA0PGSHUwC1CuKBBDPPFMSAl8jfPhKLWbPvHcIaY6mcOomeAaon11 uhHONrwg33Qv9ytkQgrLQKQ-- Received: from jws10024.mail.ne1.yahoo.com by sendmailws118.mail.ne1.yahoo.com; Fri, 02 Sep 2016 05:01:59 +0000; 1472792519.099 Date: Fri, 2 Sep 2016 05:01:58 +0000 (UTC) From: Daniel Webster Reply-To: Daniel Webster To: "users@flex.apache.org" Message-ID: <1744565477.191074.1472792518718@mail.yahoo.com> In-Reply-To: <1472259029471-13415.post@n4.nabble.com> References: <1472259029471-13415.post@n4.nabble.com> Subject: Re: Downloading Large Amounts of Data from Database MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_191073_981208597.1472792518712" archived-at: Fri, 02 Sep 2016 05:02:18 -0000 ------=_Part_191073_981208597.1472792518712 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Bill, Not sure how much this will help but you can reduce the size of the meta da= ta or variable names being transferred.On the server side when preparing th= e data to return to the client (or via SQL aliases), you can change all of = the variable names in each row to something very short instead (e.g. "first= _name" becomes "fn", "comment" becomes "cm" etc). This can really reduce th= e amount of data returned, especially if there are a lot of columns.Or, ret= urn each row as an indexed array only so there are no variable names at all= to transfer along with the data.In the client you will then have to map th= em back to the original names. I have a habit of returning the same database column names as the variable = names but I try to rename/alias them if I have time. Here's an example in json: [=C2=A0=C2=A0=C2=A0 {"id": 1, "person_name": "Jim", "address": "123 test ro= ad"},=C2=A0=C2=A0=C2=A0 {"id": 2, "person_name": "Phil", "address": "63 tes= t road"}] (141 bytes) now becomes [=C2=A0=C2=A0=C2=A0 {"id": 1, "pn": "Jim", "ad": "123 test road"},=C2=A0=C2= =A0=C2=A0 {"id": 2, "pn": "Phil", "ad": "63 test road"}](111 bytes ~ 22% re= duction) Daniel From: bilbosax To: users@flex.apache.org=20 Sent: Saturday, 27 August 2016, 10:50 Subject: Downloading Large Amounts of Data from Database =20 I am running into an issue that I believe is going to take some creative problem solving.=C2=A0 I have created a service to download large amounts o= f data from a MySQL database, at least 50k records, but the app always times out before all of the data can be downloaded.=C2=A0 Has anyone ever run into th= is problem and found a solution? I don't know if there is a way to download smaller section of the database at a time and add it all together.=20 Thanks, Bill -- View this message in context: http://apache-flex-users.2333346.n4.nabble.co= m/Downloading-Large-Amounts-of-Data-from-Database-tp13415.html Sent from the Apache Flex Users mailing list archive at Nabble.com. =20 ------=_Part_191073_981208597.1472792518712--