mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1232 - Performance: Add support for a second read-only DataSource (for implicit query-only transactions)
This commit is contained in:
@@ -98,17 +98,30 @@ public interface SpiQuery<T> extends Query<T>, TxnProfileEventCodes {
|
||||
/**
|
||||
* Delete query.
|
||||
*/
|
||||
DELETE(FIND_DELETE),
|
||||
DELETE(FIND_DELETE, true),
|
||||
|
||||
/**
|
||||
* Update query.
|
||||
*/
|
||||
UPDATE(FIND_UPDATE);
|
||||
UPDATE(FIND_UPDATE, true);
|
||||
|
||||
boolean update;
|
||||
String profileEventId;
|
||||
|
||||
Type(String profileEventId) {
|
||||
this(profileEventId, false);
|
||||
}
|
||||
|
||||
Type(String profileEventId, boolean update) {
|
||||
this.profileEventId = profileEventId;
|
||||
this.update = update;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if this is an Update or Delete query (not read only).
|
||||
*/
|
||||
public boolean isUpdate() {
|
||||
return update;
|
||||
}
|
||||
|
||||
public String profileEventId() {
|
||||
|
||||
Reference in New Issue
Block a user