Dear community members,

is it possible to remove remove multiple objects at once from a collection 
by passing the remove-statement a resultset? Like this (untested):

        String cmd = "begin\n";
        cmd += "let ua = select from (select expand(contentRequests) from 
Testlog) where value.actionTime < ?\n";
        cmd += "let uadel = update Testlog remove contentRequests = $ua\n";
        cmd += "let del = delete from $ua\n";
        cmd += "commit retry 100\n";
        cmd += "return $del";

        object_db.command(new OCommandScript("sql", 
cmd)).execute(c_month.getTimeInMillis());

Thank you for your help & time.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to