Felix Bünemann

Results 317 comments of Felix Bünemann

@pond This is looking great already, using inheritance makes it really clean. I'm sorry for my horrible response times, but I've been switching jobs and there's just so much going...

Would the setting apply to all numbers or only to decimals?

Are you suggesting to add an example on how to use this gem with ActionController::Live streaming to the README?

I'm very busy right now, but I'm happy to accept a PR with an example. Both a file in the repo or a link to a gist would work for...

Oh just though about it: An example could also live in the Wiki, which is even easier to update than an example in the repo.

@zmd94 Note that the example code I gave you does not use the rails streaming api, which is discussed here. The streaming API allows to stream a large XLSX file...

> @felixbuenemann Does the above example @arcreative provided works or would you prefer any other approach ? Depending on how performance critical your code is, you could also just use...

At 300-400K rows I'd suggest skipping model overhead and go to straight arrays, using something like arcreative proposed. You could also use the AR `in_batches` method combined with `pluck` to...

I've done some benchmarking on a 440K row table and the solution from @arcreative is a lot faster than in_batches/pluck with about 700ms vs 5.6s. The naive find_each took 6.8s,...

@arcreative Your code is totally fine, I would probably do the same. The mysql2 gem also allow streaming a query: https://github.com/brianmario/mysql2#streaming I haven't tested it, since I try to avoid...