Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

128
Views
WiceGrid Export Failing

I have Student Table which has more than 15 million records, I am trying to export the data with the WiceGrid export CSV option, but it often timeouts.

What should I do to avoid timing out and giving me the CSV file correctly?

Controller Function

def index
  @students_grid = initialize_grid(
    current_school.students,
    order: 'students.id',
    order_direction: 'desc',
    per_page: 100,
    name: 'g1',
    enable_export_to_csv: true,
    csv_file_name: 'students-' + Time.current.to_s(:number)
  )

  export_grid_if_requested('g1' => 'students_grid') do
  end
end
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!