Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi everybody here,
i wanna ask about a big data using postgresql and using EJB(jboss) as the remote bean, also as the webserver i'm using tomcat and pure html+jsp(JSON).

let's say in a month i'm gonna have 10000 rows of data, so if i'm query it for 1 day, it gotcha be 100 rows, and it's still fine, but after i query for 3 days or more, let's say it return between 10000 and 1000 rows, it's gonna take a long time.

how do i optimize my query to let it quicker ?

thanks.
Posted
Comments
Richard MacCutchan 26-Oct-15 6:27am    
Do not query all the data at once. Use paging or select criteria to reduce the number of rows returned at one time.
Andrew Budiman 26-Oct-15 7:20am    
i've known this, but i'm using json and datatable.net framework so i query it all at once, and then put it at the json and datatable, how can i do it ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900