Saturday, 15 February 2014

java - Database on client server android -



java - Database on client server android -

i developing simple client server application in android, although have doubt. save info app @ server, , app need access them. know what's best approach manage data; using 2 databases, 1 in server , in smartphone (it need synchronization), or 1 @ server (all requests have go server) ?

thanks in advance.

well, frankly speaking, depends on kind of data handling.

if info totally dynamic , varies @ short intervals of time, should querying server.

on other hand, if info relatively static , remains same on longer periods of time, wise cache info in local database, instead of querying 1 time again , 1 time again server.

another thing have maintain in mind size of data. if info big , storing in local database, need clear old info after interval create sure app not eating memory.

java android performance client-server

No comments:

Post a Comment