I have the following model in my orbit app "tester", i having no success
while tring to delete more than one row at time...

[code]
--[[
table_prefix = ""
teste = entity {
fields = {
id = key(),
nome = text(),
data = integer()
}
}
--]]

local t = tester:model 'teste'
local d= t:find_all( 'data>?', { 3 } )

-- this should work?
--d:delete()
table.foreach( d, function(a,b)
local ins=t:find( tonumber(b.id) )
ins:delete()
end)

[/code]

but it only works if i try deleting one by one, should rows deletion works
better in performance than one row deletion at a time?

-- 
xxle...@gmail.com
cel.: (11) 7531.7438
site: about.leite.us
_______________________________________________
Kepler-Project mailing list
Kepler-Project@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/

Reply via email to