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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T19:21:19+00:00 2026-06-01T19:21:19+00:00

Currently I am building a sample application which is supposed to read a moderately

  • 0

Currently I am building a sample application which is supposed to read a moderately huge excel sheet (10-15MB) then select a few columns and create as many text files as the number of rows in the excel sheet , but containing only the columns selected.

e.g For clarity.
Suppose my xl sheet contains 5 columns Name,empid,email, mobileNo:and address and total rows or records is 50000. Now I want to create 50000 text files each containing Name,mobileNo: and the emailId only

Since the size of the excel sheet was huge and the excel sheet can be xlsx or xls I am using apache poi to read it . But I am unable to decide any best approach to be followed after this.

Approach 1: Should I try to move the entire excel sheet to a data base like mysql. So then i would have to create a table on the fly based on the header columns retrieved and dump all the rows in it. And then using a select query I can get the columns necessary and create the text files

Approach 2: I read about ASM library which can create class files on the fly,. I was thinking of creating an object per row and add everything to a list. But here retrieving the particular column will involve lot of iterations and the size of the list will be proportional to the rows in the excel sheet, which will be huge.

Currently I am unable to decide on any approach. I know for sure that both approaches suck 🙁 . Any advice on how to proceed would be of immense help to me.

  • 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-06-01T19:21:20+00:00Added an answer on June 1, 2026 at 7:21 pm

    Why don’t you just create an in-memory datastructure that holds the information content of the spread-sheet and work from that.

    It could be something as simple as a list of arrays of strings, where each array represents a row. To deal with the column names, use a hashmap that maps column names to column numbers.


    Your approach 1 is over-kill … unless the spreadsheet is too big to store in memory.

    Your approach 2 is unnecessarily complicated. Creating class files on the fly doesn’t achieve anything that can’t be achieved with a simple general-purpose data structure.

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

Sidebar

Related Questions

I'm currently building a simple application on Gjs , which should change the background-image
I am currently building a very small/simple web application in ASP.NET MVC with ADO.NET
I am currently building an internal web application used in a factory/warehouse type location.
We're currently building an application that executes a number of external tools. We often
I'm currently building a small web application that includes a fair amount of JavaScript.
I am building a local intranet web application which uses the current user's AD
So, I'm building an application which save locations to a database using lat/lon coordinates.
I'm currently building a simple web application in PHP that other company's can use
I'm currently building an application to return gigs in the selected city, e.g. Edinburgh
I am currently building a simple application for Android using the NDK and needs

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.