0

I'm using ydn-db as a shim for mobile dev but am experiencing some poor performance with IOS and record retrieval.

My question is, what is the best way to loop over a data store?

Right now I use

db.values() and set the limit to the number of items in the list ( usually about 200, but it has a hard limit at 100 )

Anyhow was just wondering what the best way to go about looping over the results might be.

I have read the docs, and while they are extensive they are also confusing, hence why I'm posting here.

Anyhow, any help would be appreciated.

Kyaw Tun
  • 12,447
  • 10
  • 56
  • 83
proxim0
  • 1,418
  • 2
  • 11
  • 14

1 Answers1

0

The best way to loop through is db.open. It iterate one record at a time and very memory efficient.

Kyaw Tun
  • 12,447
  • 10
  • 56
  • 83