Coder Social home page Coder Social logo

csv_builder's People

Contributors

defv avatar fawce avatar gtd avatar mocoso avatar nbudin avatar sgonyea avatar tomstuart avatar vidmantas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

nbudin cstar faruto

csv_builder's Issues

Streaming not working

Here there. I can't seem to get streaming working in my Rails app on Heroku with Unicorn. I also tested locally with Foreman with no luck. I am using the same view code as is in the test app for this gem. The file download never initiates... it just spins while it cranks through the loop. I know this isn't much to go on, but is there anything I could be missing?

Controller:

  @streaming = true
  @filename = 'report.csv'
   respond_to do |format|
     format.csv
end

View:


10_000_000.times do |i|
   csv << ["this","is","a","scale","test",i.to_s]
end

Procfile:
web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb

Unicorn.rb

timeout 30         # restarts workers that hang for 30 seconds```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.