Open ghempton opened 10 years ago
This method would create or update a model immediately on the server. The perk of this over a normal session.flush is that it could take advantage of the underlying opts parameter to allow for custom parameters, endpoints, etc.
session.flush
Moreover, session.flush should just call session.persist on all dirty models. The underlying adapter can do the batching on the run loop.
session.persist
This method would create or update a model immediately on the server. The perk of this over a normal
session.flush
is that it could take advantage of the underlying opts parameter to allow for custom parameters, endpoints, etc.