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

  • Home
  • SEARCH
  • 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 7530011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:47:34+00:00 2026-05-30T04:47:34+00:00

I had an pre-interview task, which I have completed and the solution works, however

  • 0

I had an pre-interview task, which I have completed and the solution works, however I was marked down and did not get an interview due to having used a TADODataset. I basically imported a CSV file which populated the dataset, the data had to be processed in a specific way, so I used Filtering and Sorting of the dataset to make sure that the data was ordered in the way I wanted it and then I did the logic processing in a while loop. The feedback that was received said that this was bad as it would be very slow for large files.

My main question here is if using an in memory dataset is slow for processing large files, what would have been better way to access the information from the csv file. Should I have used String Lists or something like that?

  • 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-30T04:47:36+00:00Added an answer on May 30, 2026 at 4:47 am

    It really depends on how “big” and the available resources(in this case RAM) for the task.

    “The feedback that was received said that this was bad as it would be very slow for large files.”

    CSV files are usually used for moving data around(in most cases that I’ve encountered files are ~1MB+ up to ~10MB, but that’s not to say that others would not dump more data in CSV format) without worrying too much(if at all) about import/export since it is extremely simplistic.

    Suppose you have a 80MB CSV file, now that’s a file you want to process in chunks, otherwise(depending on your processing) you can eat hundreds of MB of RAM, in this case what I would do is:

    while dataToProcess do begin
      // step1
      read <X> lines from file, where <X> is the max number of lines 
      you read in one go, if there are less lines(i.e. you're down to 50 lines and X is 100)
      to process, then you read those
      // step2
      process information
      // step3
      generate output, database inserts, etc.
    end;
    

    In the above case, you’re not loading 80MB of data into RAM, but only a few hundred KB, and the rest you use for processing, i.e. linked lists, dynamic insert queries(batch insert), etc.

    “…however I was marked down and did not get an interview due to having used a TADODataset.”

    I’m not surprised, they were probably looking to see if you’re capable of creating algorithm(s) and provide simple solutions on the spot, but without using “ready-made” solutions.

    They were probably thinking of seeing you use dynamic arrays and creating one(or more) sorting algorithm(s).

    “Should I have used String Lists or something like that?”

    The response might have been the same, again, I think they wanted to see how you “work”.

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

Sidebar

Related Questions

I have a pre-existing c++ object model which represents the business layer tier of
I have tried to get an XML file to sort and have had no
I've had a system up and running that used the Fluent NHibernate pre-release v0.0.1.0
I had been happily coding along on a decent sized solution (just over 13k
I had a discussion with some colleagues mentioning that there are not too many
Had the following as an interview question a while ago and choked so bad
Had to write the following program for an on line pre java class using,
I hate to ask but I had to. I have an html code. For
I had a look at this previous question however this doesn't seem to work
(Why I am trying to do this: I have had no luck in using

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.