Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

Search in CSV files

Thread view: 
marcosm - 12 Jan 2006 11:58 GMT
Hi there.

I need some help with CSV files. I have an application where the data
to be manipulated is in CSV files. While this files have a small number
of entries there is no problem in searching sequentially. But this
files tend to get bigger slowing down the app performance. Can someone
give me any pointers on how to improve this? Database is not an option.
Any links to CSV manipulating libraries would be welcome too.

Its a web application, running on Tomcat 4.1.31.

Thanks
Thomas Weidenfeller - 12 Jan 2006 12:38 GMT
> Hi there.

Don't multipost. You got an answer in another group. Have fun finding it.

/Thomas
Signature

The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/

Hiran Chaudhuri - 12 Jan 2006 16:24 GMT
> Hi there.
>
[quoted text clipped - 4 lines]
> give me any pointers on how to improve this? Database is not an option.
> Any links to CSV manipulating libraries would be welcome too.

You should consider using indexes on your CSV files to speed up performance.
I cannot tell whether there are libraries out there that do the job on CVS
files. Otherwise, such data handling libraries are called 'database'.

Hiran Chaudhuri
Roedy Green - 12 Jan 2006 21:01 GMT
>I need some help with CSV files. I have an application where the data
>to be manipulated is in CSV files. While this files have a small number
>of entries there is no problem in searching sequentially. But this
>files tend to get bigger slowing down the app performance. Can someone
>give me any pointers on how to improve this? Database is not an option.
>Any links to CSV manipulating libraries would be welcome too.

see http://mindprod.com/jgloss/csv.html

CSV is a sequential format. It is not designed for lookup or update.
You must read the file into RAM into some sort of data structure, do
your fancy stuff, then write it out again.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

opalpa@gmail.com - 12 Jan 2006 22:23 GMT
http://ostermiller.org/utils/CSV.html

It even works on Microsoft made CSV, which is not standard CSV.

As an aside, it seems Microsoft's MO is to introduce minor
incompatibilites to assure integration difficulties.  Whether it is
changing / to \ in file paths (which makes the code harder to write as
\ has extra meaning), or adding incompatibilities to kerberos, or
modifing CSV, Microsoft, it appears, purposely makes integration
difficult.  Just a few examples in this paragraph.

http://www.geocities.com/opalpaweb/


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.