How to Improve DownloadS

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default How to Improve DownloadS

    HI ,

    I have 20K-40K records(20-60) columns data ,which i am putting on my web site
    for the user to download (in excel format). And it's taking lot of time for
    them to download ( first it will retrieve the data from a database table and
    displayin table format ,and then using <cfcontent converting into excel,.....
    This is all happening in a single page.)

    What are my options, how can I improve the speed.

    Thanks


    Coldguru Guest

  2. Similar Questions and Discussions

    1. Can any one tell How to improve this site
      Can any one tell me how to improve this site Visit http://www.the-corporate-college.com/
    2. In what way do I have to improve???
      Hi Folks, as you may have noticed, I'm pretty new here.... Hello to all of you..... I 'll do my very best to help where I can (will need a lot of...
    3. FreeHand MX better improve
      hi all freehand lover, with adobe coming out its "creative suite" soon. I think fh users are going to dwindle further. MM is not giving lot of...
    4. need comment to improve
      Hi there, This is my second website made with Flash..,, Any suggestions would help my design in the future.... Feel free to make your comment......
    5. How to improve SQL
      Hi All, Can you explain me how to improve this sql statement. The "top" command showed this SQL program took about 50% CPU resource. When it run...
  3. #2

    Default Re: How to Improve Download spped

    Does the content change much?
    Stressed_Simon Guest

  4. #3

    Default Re: How to Improve Download spped

    New data Gets added everyday, so let me know whatever you got.
    Coldguru Guest

  5. #4

    Default Re: How to Improve Download spped

    I probably need something, where i can generate this excel file and zip it and keep it ready for them to download, Do I have an option to all these programetically rather than manual.
    Coldguru Guest

  6. #5

    Default Re: How to Improve Download spped

    Does the old data ever get updated? Or does it remain the same once it has been set?
    Stressed_Simon Guest

  7. #6

    Default Re: How to Improve Download spped

    No, my old data never get updated,stays the same once it's there.
    Coldguru Guest

  8. #7

    Default Re: How to Improve Download spped

    I go like this:

    <cfcontent type="application/vnd.ms-excel"> above the output (tables) and for
    great speed I use the cachedwithin feature in the cfquery. use the schedule
    part in the CF admin and run it in the early morning; then it will be cashed
    and when someone calles the data to excel the data is already cached and
    generates the page. I am this for very large record sets, looping through
    millions of records. Hope this help

    GeorgeWS Guest

  9. #8

    Default Re: How to Improve Download spped

    Every time you get records from the database and format them into a table, save
    your generated content (HTML) in a flat file. Next time, just select new
    records and append them. Save the new file. This will greatly reduce the
    rendering process. Of course, there is nothing you can do about sending the
    data, unless you zip them, which may be inconvenient on the other end.

    You may enable GZIP compression on the server, if your server has this
    feature. So the content you are sending will be 4-10 times smaller. Browser
    will decompress it on the fly.

    Mr Black Guest

  10. #9

    Default Re: How to Improve Download spped

    Stay away from using gratuitous dynamic generation for this. You're using a
    ton more resources than you need to. Write a physical file to disk and then
    call it as much as you like. That will wipe out the server side of the load,
    mostly.

    Next you have to deal with client side. First thing to do is make sure you
    optimize your table and html output so it needs the minimum number of
    characters to display. Use styles and no FONT commands. If you can, write
    your styles so they apply to the TD element and don't need a div or style
    attribute to the td. That will save a boatload of characters right there. Get
    rid of any extra line breaks that you can manage as well.

    Once you've minimized your server side, and output, you need to minimize the
    amount of time needed to pump it down the wire. You can add gzip compression
    to your CF-generated pages very easily. Go to the Macromedia Exchange and look
    up CFX_GZIP and CF_GZipPage. The compression you can get out of it is
    gigantic, which in turn will significantly reduce the time it takes to send the
    data down the pipe.

    Hope this helps,

    --Matt--
    MSB Web Systems... [url]http://mysecretbase.com[/url]
    "When in doubt, mumble. When in trouble, delegate. When in charge, ponder."
    - Senator. David Boren


    MattRobertson Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139