MASS STATEMENT
April 20, 2014 · View on GitHub
Activate supports mass update/delete statements. Use then when you have to perform a really big update/delete operation. It’s recommended to be used only on migrations.
MASS UPDATE
Example:
update {
(entity: MyEntity) => where(entity.attribute :== "string1") set (entity.attribute := "string2")
}
Multiple attributes update:
update {
(entity: MyEntity) => where(entity.attribute :== "string1") set (entity.attribute := "string2", entity.otherAttribute := 100)
}
MASS DELETE
delete {
(entity: MyEntity) => where(entity.attribute :== "string1")
}