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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:01:37+00:00 2026-05-18T01:01:37+00:00

I have an issue right now where I believe my cold fusion code is

  • 0

I have an issue right now where I believe my cold fusion code is trying to create a very large excel file after pulling records from an access database. I beleive it is timing out and giving a 500, null error. The cold fusion will need to process around 180,000+ records. Is there an efficient way of doing this?

Here is pretty much how it goes down:

    <cfquery datasource="datasource" >
Drop Table Person
</cfquery> 

<cfquery datasource="datasource" >
Update1rowtble
</cfquery>


<cfset Clist=  "FNAME,LNAME,etc..">

<cfquery name="q" datasource="datasource" >
R2A</cfquery>



<cffile action="WRITE" file="filepath" output='#toString(queryToXL(Q,Clist))#' addnewline="No" fixnewline="No">

 <cfquery name="q" datasource="source" >
R3
</cfquery>

<cffile action="WRITE" file="filepath2" output='#toString(queryToXL(Q,Clist))#' addnewline="No" fixnewline="No">

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-05-18T01:01:38+00:00Added an answer on May 18, 2026 at 1:01 am

    Efficient is in the eye of the beholder.

    If you are simply building a csv or html file that you are streaming to the browser as an xls file, then you need to make sure you write a row of data and flush the response buffer in order to keep the connection with the browser alive.

    However, if you are building a giant excel file in memory and trying to send it down then you probably need to make some UI changes.

    Namely, have the UI queue a request for the report/file. Then let the browser go away and have the user come back later to check on it. You could even have a little ajax thing check on the queue every so often. For the server side of things, have a non-web process create the file and notify the queue when the job is complete.

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

Sidebar

Related Questions

Right now i am doing an assignment but find it very hard to parse
I'm working developing a system right now that deals with lots of conversions between
A long time ago I have read an article (I believe a blog entry)
I always have an issue with similarities between the names of the Public variables
maybe you can help me out here. I have an issue with my codeigniter
This is my query right now: SELECT a.stacct, b.hacct, a.stfrqcode, b.thfrqcode FROM st a
I am seeing a very strange problem on one of my production boxes. We
As a maintenance issue I need to routinely (3-5 times per year) copy a
I had another question about this issue, but I didn't ask properly, so here
I was wondering, when is the right time or the correct project size to

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.