File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Problem to limit a query with JPA and tomplink Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Problem to limit a query with JPA and tomplink" Watch "Problem to limit a query with JPA and tomplink" New topic
Author

Problem to limit a query with JPA and tomplink

Ismael Rodriguez
Greenhorn

Joined: Dec 26, 2012
Posts: 6
I'm trying to improve the performance of a website in regards to the list, and for that I made a pagination. The problem is that when I press to show me the list for the first time, load all the records in the database, so it takes a while.

The paging system works well, the problem is what I said to the first query I get all the data, and I would have specified that only want X JPA results with:



The following requests that if I'm doing the way I want done, the problem is the first, what can
be happening?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem to limit a query with JPA and tomplink