dimanche 28 juin 2015

Trying to insert 10000 records sqlite ios swift

I am trying to insert 10000 records and its taking 45 secs

this is my code

println(NSDate.new())
for index in 0...10000{
countrys.insert(name <- "abc")
//println(index)
}
println(NSDate.new())

is this way to do it?

Aucun commentaire:

Enregistrer un commentaire