Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

358
Visualizações
How to sync local database with remote server using Android Paging Library?

DataSource takes all data from local database (Room). BoundaryCallback loads new data from server only when reachs end. But what to do with items stored in room if they already changed/deleted from remote server? App will display it as they are still in our local database.

I read this article Paging Library: Database + Network but I'm not sure if this is only best solution.

Maybe I should create custom DataSource and DataSourceFactory which will get page from local database and async load the same page from remote server. Then remove local page from database and insert this new page. But it sounds even worse than in that article.

Is there a correct way to sync local database with remote database?

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda