IO activity preferable?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sandy_Saha
Posted On:   Thursday, January 13, 2005 08:22 AM

Hi,
Can someone list out the pros n cons of using IO classes n methods to do a task?
Like read() blocks etc...
Thanx
Sandy

Re: IO activity preferable?

Posted By:   Christopher_Koenigsberg  
Posted On:   Saturday, January 15, 2005 07:50 AM

We have some situations where we want to know the size of something, but the only way we've found is to write it out to a tmp file, and get the file size.


So where we should just be working with objects in memory, sometimes we have to take a detour through IO, with the possible errors, blocking etc. like you mention, plus worrying about the partition filling up, about read/write access (especially if this is in a Java Stored Procedure inside an Oracle database), about how things get deleted/cleaned up, etc.


I guess this is an example of what you are asking about? (so we are careful not to calculate the size very often!!!)
About | Sitemap | Contact