jeudi 26 novembre 2015

Android Application working very slow when fetching the data from SQL LITE

I have created android application, in that application I am fetching data from the SENSORS. that sensor are returning approx around 1000 records per second. I need to calculate SENSOR data for 1 min after one min i am deleting the data.

I am filtering that data for the 1 minute after one min i am calling the web service to post filtered the data to the SQL server.

Data which are coming from the SENSOR , are fetched from hANDLER & ONE thread handles that thread.

there are four simultaneous threads are running in my application. these makes application very slow.

when i have fetch data from another table which has no connection with the above logic, then from that table data fetching is very slow i am able to show that data after 5-10 min

so what should i do to increase the performance with the DATABASE connectivity.

One more thing i am refreshing the page after every five seconds & after every five seconds application connects with the database.

Please help me thanks in advance

Aucun commentaire:

Enregistrer un commentaire