You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by apachep2 <ap...@hotmail.com> on 2003/04/11 16:32:02 UTC

[OT] advice on parsing large tile

Totally not struts question but I think this list is more friendly to me
and there are a lot of talented people on the list.

 

Don't ask me why we don't use JDBC.

 

I am in a conversion project of online store. We need to read membership
info from a text file when we validate membership. The file is 4MB. To
search membership record from this file, I can think of two options. One
is to parse the whole 4MB and put the records into a Map. The other
choice is to parse the file when validation happens.

 

Does someone have a smarter solution?

 


Re: [OT] advice on parsing large tile

Posted by Stephen Smithstone <sk...@lchost.co.uk>.
how about setup a listener servlet so when the web app is started the file is 
parsed and store in a map or what every then u can call it from the 
application scope and saving loading it up every time



On Friday 11 April 2003 3:32 pm, apachep2 wrote:
> Totally not struts question but I think this list is more friendly to me
> and there are a lot of talented people on the list.
>
>
>
> Don't ask me why we don't use JDBC.
>
>
>
> I am in a conversion project of online store. We need to read membership
> info from a text file when we validate membership. The file is 4MB. To
> search membership record from this file, I can think of two options. One
> is to parse the whole 4MB and put the records into a Map. The other
> choice is to parse the file when validation happens.
>
>
>
> Does someone have a smarter solution?


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org