android - How many cursor we can open in sqlite database? -


i have database single table .table contains around 7000 rows , 3 columns including primary key.

when use cursor operation blocking ui.

you can refer these questions .

link 1

link2

now due , in situation try out new thing if possible.

i want clarification if possible or not .

question : can use more 1 cursor read data database.

for example 7 cursor , each can read 1000 rows table , meanwhile show progress dialog .

so complete database operation when user not using ui .

let me know can done . if provide code snippet , best.

thank time .

multiple cursors should not done, programming nightmare manage. if cursor locking ui should run database query within asynctask, http://www.vogella.com/articles/androidbackgroundprocessing/article.html asynctask.

any tasks take long time complete, should done on separate thread such asynctask otherwise user presented anr (application not responding).


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -