You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Larraquy <ll...@hotmail.com> on 2004/02/17 01:45:16 UTC
Performance question JDBC vs Properties
Hi all, I've got this doubt. My applicacion uses some "properties" files to
config some events or constants, or whatever, but it's job basically is to
map the users "click" on a JSP, to a servlet and define what class should
take this event. So, every request comming to a JSP, will be a search in
this file. This is for writing only 1 Servlet.
For instance, if an user clicks "ShowClients" something like this should be
written at the file. Where this class is called to do the job.
ShowClients=com.jkt.proyect.clients.ShowClients
Or "ShowProducts":
ShowProducts=com.jkt.proyect.products.ShowProducts
This file, should be as big as "use cases" in the system.
Actually we've written 2000 lines.
My problem, is that for reconfiguring this file, or adding lines to it, I've
got to reload the application. As we are at deploying time, this happens
quite often, so I've got to take users out of the system, and then, calling
them to continue working (they are quiete few until next month).
I'm thinking of sending to logic to a database, I mean configure this in a
table.
So if I've got 2000 records in this table, would it be much less performant
that writing it in a file, as it is now working?
Thanks in advance.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: Performance question JDBC vs Properties
Posted by Neal <ne...@yahoo.com>.
Any chance you guys would consider NOT sending signed or encrypted
emails to the list any more? They always choke my email client and it
just doesn't seem necessary for the purpose of an email newsgroup. ;-)
Thanks.
Neal
-----Original Message-----
From: Antonio Fiol Bonnín [mailto:fiol.bonnin@terra.es]
Sent: Monday, February 16, 2004 11:40 PM
To: Tomcat Users List
Subject: Re: Performance question JDBC vs Properties
I would write a "reload config" servlet. It will save you one JDBC
access per request.
Antonio Fiol
Larraquy wrote:
>Hi all, I've got this doubt. My applicacion uses some "properties"
files to
>config some events or constants, or whatever, but it's job basically is
to
>map the users "click" on a JSP, to a servlet and define what class
should
>take this event. So, every request comming to a JSP, will be a search
in
>this file. This is for writing only 1 Servlet.
>
>For instance, if an user clicks "ShowClients" something like this
should be
>written at the file. Where this class is called to do the job.
>
>ShowClients=com.jkt.proyect.clients.ShowClients
>
>Or "ShowProducts":
>
>ShowProducts=com.jkt.proyect.products.ShowProducts
>
>This file, should be as big as "use cases" in the system.
>
>Actually we've written 2000 lines.
>
>My problem, is that for reconfiguring this file, or adding lines to it,
I've
>got to reload the application. As we are at deploying time, this
happens
>quite often, so I've got to take users out of the system, and then,
calling
>them to continue working (they are quiete few until next month).
>
>I'm thinking of sending to logic to a database, I mean configure this
in a
>table.
>
>So if I've got 2000 records in this table, would it be much less
performant
>that writing it in a file, as it is now working?
>
>Thanks in advance.
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Performance question JDBC vs Properties
Posted by Antonio Fiol Bonnín <fi...@terra.es>.
I would write a "reload config" servlet. It will save you one JDBC
access per request.
Antonio Fiol
Larraquy wrote:
>Hi all, I've got this doubt. My applicacion uses some "properties" files to
>config some events or constants, or whatever, but it's job basically is to
>map the users "click" on a JSP, to a servlet and define what class should
>take this event. So, every request comming to a JSP, will be a search in
>this file. This is for writing only 1 Servlet.
>
>For instance, if an user clicks "ShowClients" something like this should be
>written at the file. Where this class is called to do the job.
>
>ShowClients=com.jkt.proyect.clients.ShowClients
>
>Or "ShowProducts":
>
>ShowProducts=com.jkt.proyect.products.ShowProducts
>
>This file, should be as big as "use cases" in the system.
>
>Actually we've written 2000 lines.
>
>My problem, is that for reconfiguring this file, or adding lines to it, I've
>got to reload the application. As we are at deploying time, this happens
>quite often, so I've got to take users out of the system, and then, calling
>them to continue working (they are quiete few until next month).
>
>I'm thinking of sending to logic to a database, I mean configure this in a
>table.
>
>So if I've got 2000 records in this table, would it be much less performant
>that writing it in a file, as it is now working?
>
>Thanks in advance.
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>