File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
Object Relational Mapping
Getting slow to load the data
Joined: Mar 18, 2011
Jan 12, 2012 06:06:55
i have written a hibernate query to get the data from MySql like this
Calendar cal = Calendar.getInstance(); cal.add(Calendar.DAY_OF_YEAR, -1); Date maxModDate = cal.getTime(); Query q = session.createQuery("from CompSubscription sub where sub.companyInfo.companyId='"+comp_id+"' and sub.subscEndDate >:maxModDate "); q.setParameter("maxModDate",maxModDate); List<CompSubscription> listCompSubscription = q.list();
from that list i am displaying data in
. It is tacking 2 to 4 minutes to execute query and data is displayed in JSP.
subject: Getting slow to load the data
Please help with pagination in JSP?
display all items from a list
a question on data submitting
code to retrieve result from databse which are selected in the list box
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015