Been there, hit that.
You need to clear() the session. Or, you can also evict() as you go.
Basically, every time Hibernate needs to commit something, it needs to flush
to the database, and it looks at all of the Hibernate objects that it knows
about - not just those to which you have current ref
Em Thu, 15 Jan 2009 23:19:56 -0300, Fernando Padilla
escreveu:
The database was just upgraded and io/cpu is really really low. So that
won't be the case.
I would still check this out . . . Don't forget about one transaction
waiting for others to release locks in table rows . . .
The r
I know that. :)
The database was just upgraded and io/cpu is really really low. So that
won't be the case. The root cause might be the number of db requests
required to render a page, but the database it self is not the bottle
neck. :) :)
Thiago H. de Paula Figueiredo wrote:
Em Thu, 15 Jan
a quick way is:
instead of creating a service, make something like this
@CommitAfter
private void saveThem(List lst) {
// put code here to save objects, don't beging a transaction as it has been
started by Tapestry-Hibernate
}
how long?
James Sherwood wrote:
>
> Hello,
>
> It took 13 se
Can you avoid committing the transaction on every item? Committing
takes more database effort than the initial update/insert, so batching
these within one transaction is highly advisable if it's possible.
Christian.
On 15-Jan-09, at 21:02 , James Sherwood wrote:
Hello,
It took 13 seconds
Hello,
It took 13 seconds to create the List with 14000 objects.
At 1 hour 45 minutes I was at 8600 records committing each one.
For the service, I haven't went that far in T5 yet so I will have to look it
up.
If there was a way to save the whole list at once using the session that
might be fas
Hi James,
I do not see any reason why it is slow, but would suggest to do following:
1) try to put everything into a list of objects without saving to the
database, slow?
2) use a service to accept the list from #1, beging a transaction, save,
commit, slow?
Angelo
James Sherwood wrote:
>
>
Hello,
Sorry I forgot to mention that I do not believe indexing is an issue as it
is only an 'over time' issue that it gets slow not a total number in the db
that causes the slowness. I can have 0 records or 40k records in the db and
the transactions are still blazing fast at the start.
--James
Hello,
I suppose I could restrict the number of records allowed however I do not
believe that I need to. I believe there is a problem somewhere, maybe in
how I am doing the transactions or something.
Before using t5/hibernate we were using t3/torque and if that system would
have no problem with
Em Thu, 15 Jan 2009 20:57:19 -0300, Fernando Padilla
escreveu:
Well, we have a large app that is not performing very well.. and now I
have to figure out how to make it more performant..
In my humble opinion, you're starting to performance bottleneck from the
wrong side of the stack. Most
Well, we have a large app that is not performing very well.. and now I
have to figure out how to make it more performant..
And I was just wondering if dumping component level response times,
could maybe give me some sort of clue as to what to focus on.. It's a
slightly different view of the c
Acutally, check the logging documentation; there's already a service
that times how long the render takes and how many render operations
were involved. Much of the performance improvements in 5.1 was reduce
the number of operations per component.
There isn't a good way to get output about time pe
Em Thu, 15 Jan 2009 20:26:38 -0300, Fernando Padilla
escreveu:
I was wondering if I could create some sort of profiler, that would
print out the render time for each component..
that way I can use that information to try to pinpoint components that
need to be optimized..
Quick and lazy :
I was wondering if I could create some sort of profiler, that would
print out the render time for each component..
that way I can use that information to try to pinpoint components that
need to be optimized..
any ideas?
-
T
Hey Ted,
I happened to run into the same exact problem you were having while trying
to get my custom conversational PersistentFieldStrategy implemented. Did you
manage the solve the problem (reading values from activation context before
gathering persistent fields) in any satisfactory way?
Kalle
Please open an issue for it; otherwise these will get lost.
Kalle
On Thu, Jan 15, 2009 at 2:19 PM, Joachim Van der Auwera wrote:
> After two days of hunting, I have discovered a bug (or maybe better)
> "limitation".
> If you try to use the FormFragment component inside a loop, then the
> update
Feels like a Hibernate question, not Tapestry. Does your table have the
right index, do you need to have 10k transactions in a single web-request?
Szemere
Completely agree with the sentiments expressed. Too often I've had to use
Google or similar to find what I'm looking for in the Tapestry
documentation. Having it split across at least 4 different places and in
some places confused with Tapestry4 is awkward.
Szemere
After two days of hunting, I have discovered a bug (or maybe better)
"limitation".
If you try to use the FormFragment component inside a loop, then the
updates caused by the form elements in the formfragment will only be
applied to the last item in the loop.
The form elements seem to be includ
Guys, Im trying to make a small search engine, but It isn't working.follows
the code:
TML:
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
Tibox Test App
Allert
Fast Support
.lista {
width: 100%;
Hi guys,
if any newbie lurks around here on the mailing list, I made a new blog post
with screencast at http://bbwebcraft.blogspot.com/. This time it is about
how to tweak your development environment to speed up editing Tapestry's
template files.
For others, if you have any suggestions, please l
Hello,
I am using POI to take an excel file and put it into a Mysql database using
hibernate.
I put a counter on the records going into the database and it starts off
fast but then slows to over 15 seconds a record and I cannot figure out why.
My code is basically this:
Public class
So please, put a note with an updated app.war file in tapestry website...
On Thu, Jan 15, 2009 at 3:15 PM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:
> Em Thu, 15 Jan 2009 13:10:51 -0300, Sid Ferreira
> escreveu:
>
> Guys, Im really getting confusing... what's the real version?
>
Yeap, working on it, just figured it should be safe to use the shadow. With
the current interface, discarding changes (of conversations) might yield
unexpected results though; I'll see what becomes out of it once I get a
little further along with the implementation.
Kalle
On Thu, Jan 15, 2009 at
Hi guys,
here I send one link of driver for database:
http://docs.codehaus.org/display/TRAILS/DatabaseConfigurations
Thanks for you helps guys.
--
Gutemberg A. Da Silva
Due to the magic of tapestry IOC, just inject the Request object into
your implementation of PersistentFieldStrategy and you have access - no
need to change/extend the PersistentFieldStrategy interface!
Richard.
Kalle Korhonen wrote:
I'd like to implement a custom PersistentFieldStrategy for
Em Thu, 15 Jan 2009 13:10:51 -0300, Sid Ferreira
escreveu:
Guys, Im really getting confusing... what's the real version?
So far I found 4 options:
- Maven
- app.war (tapestry5nonbelievers)
- tapestry5nonbelievers (it is different from the above)
- Jumpstart
What's the real one?
The current
Guys, Im really getting confusing... what's the real version?
So far I found 4 options:
- Maven
- app.war (tapestry5nonbelievers)
- tapestry5nonbelievers (it is different from the above)
- Jumpstart
What's the real one?
--
Sidney G B Ferreira
Desenvolvedor Web - Tibox Innovations
http://mavensearch.net is a good tool for these kinds of issues.
It's written by a friend of mine.
Olle
2009/1/15 Gutemberg A. Da Silva
> thanks for you help guy.
>
> 2009/1/15 Thiago H. de Paula Figueiredo
>
> > Em Thu, 15 Jan 2009 11:39:04 -0300, Gutemberg A. Da Silva <
> > sag@gmail.c
thanks for you help guy.
2009/1/15 Thiago H. de Paula Figueiredo
> Em Thu, 15 Jan 2009 11:39:04 -0300, Gutemberg A. Da Silva <
> sag@gmail.com> escreveu:
>
> nothing wrong for me. I was with doubts and tapestry-users community
>> serves for resolution of doubts what others users DIDN'T get
Maybe somebody can help me out here.
I am trying to get my head around the implications of the persistence
and the combination with using volatile or not.
I have built a test page which contains a list of objects (for the sake
of the example, each one only contains a string. A form is display
I'd like to implement a custom PersistentFieldStrategy for conversations
within the same page, but a PersistentFieldStrategy only knows the page
name. Currently my conversation id is part of the activation context and I'd
somehow need to pass the id on to my custom strategy. Is there a way to do
th
Em Thu, 15 Jan 2009 11:39:04 -0300, Gutemberg A. Da Silva
escreveu:
nothing wrong for me. I was with doubts and tapestry-users community
serves for resolution of doubts what others users DIDN'T get resolve for
other way (google, ...). thanks for all.
Maybe you should refine your engine s
nothing wrong for me. I was with doubts and tapestry-users community serves
for resolution of doubts what others users DIDN'T get resolve for other way
(google, ...). thanks for all.
2009/1/15 Andreas Andreou
> http://tinyurl.com/7nxgxq
>
> P.S. Couldn't resist
>
> On Thu, Jan 15, 2009 at 3:50 P
http://tinyurl.com/7nxgxq
P.S. Couldn't resist
On Thu, Jan 15, 2009 at 3:50 PM, Gutemberg A. Da Silva
wrote:
> kristian,
>
> this post was for doubts and solution where google didn't get to resolve.
>
> 2009/1/15 Kristian Marinkovic
>
>> google for it
>>
>>
>>
>>
>>
>> "Gutemberg A. Da Silva"
http://www.google.com/search?q=sql+server+jdbc
What's wrong with you? The first two results link to two implementations
for Microsoft's sql server. Just look them up in your maven repository
of choice and add them to your pom. Same applies to other vendors. And
if you don't know how to add dep
Indeed it seems that was lack of configurations... I'll check it out...
Thanks
On Thu, Jan 15, 2009 at 11:56 AM, Geoff Callender <
geoff.callender.jumpst...@gmail.com> wrote:
> Also
> http://markmail.org/message/jmi4opzz52pcr2cf#query:+page:1+mid:3madrl6pya4i7sei+state:results
>
> On 16/01/2009,
Also
http://markmail.org/message/jmi4opzz52pcr2cf#query:+page:1+mid:3madrl6pya4i7sei+state:results
On 16/01/2009, at 12:39 AM, Sid Ferreira wrote:
was within an ear
On Thu, Jan 15, 2009 at 11:26 AM, Geoff Callender <
geoff.callender.jumpst...@gmail.com> wrote:
I haven't used Glassfish, but
Your lookup string looks fine according to the doco I've just read.
Have you confirmed the jndi entries exist and their format? See
http://www.myeclipseide.com/PNphpBB2-viewtopic-t-18850.html
Have you provided jndi properties to the InitialContext? This is
usually done by putting a jndi.prop
kristian,
this post was for doubts and solution where google didn't get to resolve.
2009/1/15 Kristian Marinkovic
> google for it
>
>
>
>
>
> "Gutemberg A. Da Silva"
> 15.01.2009 14:38
> Bitte antworten an
> "Tapestry users"
>
>
> An
> "Tapestry users"
> Kopie
>
> Thema
> Tapestry With Co
Gutemberg A. Da Silva schrieb:
can somebody help me with tapestry and oracle, sqlserver e etc connector?
in mysql is so:
mysql
mysql-connector-java
5.1.5
how can I add dependency?
Search the net.
Uli
google for it
"Gutemberg A. Da Silva"
15.01.2009 14:38
Bitte antworten an
"Tapestry users"
An
"Tapestry users"
Kopie
Thema
Tapestry With Connector
can somebody help me with tapestry and oracle, sqlserver e etc connector?
in mysql is so:
mysql
mysql-connector-j
was within an ear
On Thu, Jan 15, 2009 at 11:26 AM, Geoff Callender <
geoff.callender.jumpst...@gmail.com> wrote:
> I haven't used Glassfish, but here goes my best guess...
>
> I see there is a FAQ in Glassfish about this. If you have the WAR and JAR
> together in an EAR then you might be able t
can somebody help me with tapestry and oracle, sqlserver e etc connector?
in mysql is so:
mysql
mysql-connector-java
5.1.5
how can I add dependency?
--
Gutemberg A. Da Silva
I haven't used Glassfish, but here goes my best guess...
I see there is a FAQ in Glassfish about this. If you have the WAR and
JAR together in an EAR then you might be able to get away with
injecting the bean into the web class with @EJB. See https://glassfish.dev.java.net/javaee5/ejb/examp
@Stateless only
On Thu, Jan 15, 2009 at 11:16 AM, Geoff Callender <
geoff.callender.jumpst...@gmail.com> wrote:
> How are the sesson beans annotated and interaced? eg. in JumpStart
> PersonService is like this:
>
> @Stateless
> @Local(IPersonServiceLocal.class)
> @Remote(IPersonServiceRemote.cla
How are the sesson beans annotated and interaced? eg. in JumpStart
PersonService is like this:
@Stateless
@Local(IPersonServiceLocal.class)
@Remote(IPersonServiceRemote.class)
public class PersonService implements IPersonServiceLocal,
IPersonServiceRemote {
On 16/01/2009, at 12:11 AM, Sid
hi guy,
thank for your help.
2009/1/15 Andy Pahne
> Gutemberg A. Da Silva schrieb:
>
> can somebody help me with tapestry and postgres connector?
>> in mysql is so:
>>
>>
>>mysql
>>mysql-connector-java
>>5.1.5
>>
>>
>> how can I add dependency postgres?
>>
>>
Glassfish V2, based on a friend's response.
On Thu, Jan 15, 2009 at 11:07 AM, Geoff Callender <
geoff.callender.jumpst...@gmail.com> wrote:
> The PersistenceContext unitName is not the problem at this point. It is
> used to map persistence of an entity to a datasource. Your problem,
> however,
The PersistenceContext unitName is not the problem at this point. It
is used to map persistence of an entity to a datasource. Your
problem, however, is how to look up a session bean from a client. What
EJB container are you using? JBoss 4.3? This is important because it
will determine the
Gutemberg A. Da Silva schrieb:
can somebody help me with tapestry and postgres connector?
in mysql is so:
mysql
mysql-connector-java
5.1.5
how can I add dependency postgres?
Not Tapestry related, but anyway:
postgresql
postgresql
8.3-603.jdbc4
can somebody help me with tapestry and postgres connector?
in mysql is so:
mysql
mysql-connector-java
5.1.5
how can I add dependency postgres?
--
Gutemberg A. Da Silva
Hi guys, just want to give an update. My problem has been solved, i've
been leaving it for days and there's no connection problem.
in my case, the problem was I'm missing this one line :
org.hibernate.connection.C3P0ConnectionProvider
and the real c3p0-0.9.1.jar file. Since in development , usin
You can observe browser events also by using prototype Event.observe
function. For instance you can use this javascript code in your page:
Event.observe(window, 'unload', function() {
// your unload actions
});
In this case you don't need direct access to html body element what will
simplify yo
Hi,
I have a template component that is used by all my pages. I'd like to
be able to specify for one of those pages.
Unfortunately it doesn't seem to matter what way I try I cannot get it
to work.
I can't include a in the page because then there will be two
such tags (Firefox doesn'
Thanks! I hope it's useful. The one thing that I haven't tried yet is
getting the GWT hosted mode to work in the same project, since that's a
really rapid way of seeing what you're doing. Also the way the GWT compiler
has to output into the webapp source directory is a little flaky (you have
to
Thanks Daniel!!
I have always been curious about this but shied away as free time is short
supply these days, so when I get through my TO DO list (only 1 million things
left), I will give it a bash.
much appreciated,
Peter
- Original Message -
From: "Daniel Jue"
To: "Tapestry users"
I found out that the real cause of the problem was beaneditform add
parameter.
For example
...
will fail and
...
public BeanModel getDepositModel() {
...
model.add("account");
return model;
}
will work.
kristja
58 matches
Mail list logo