RequestFactory findXXX method cause performance pitfall
In a common scenario of Web application, we usually populate cellTable,cellList with our data from RequestFactory context's method, such as findAll(), at this point , we already done the database query that get all entity ,but RequestFactory dictate that , to prepare with appropriate manipulating methods , RF has to go over the list again one by one ,resulting in additional n queries whose result set already in the memory.As I monitored in the console, the overhead is substantial, even with JPA batching present, the performance is still crippled.
According to this post in stackoverflow , we surely can override ServiceDecorator,but it seems that we lose the control over what we can do with this entity.
By far I can not think better solution for this, may be go back to GWT RPC is good idea.
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/4KKCgU50TY4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home