We are currently using:-
BuildDate Wed Mar 05 15:52:00 IST 2014
Version 4.1p
SCVersionNumber v9.1p_2014-03-05
I have to update bookmark table(record contains around 500 rows ) from client side file. Currently i have implemented like this
As i understood from this is that RPCManager queued all data(500 records) in one request and then sent this request to DB to fetch data creating a separate connection to DB for each record . (500 new connections ) .
Is there a way of updating these rows in a batch ,a single add call for all records so it creates a single connection to DB ?
BuildDate Wed Mar 05 15:52:00 IST 2014
Version 4.1p
SCVersionNumber v9.1p_2014-03-05
I have to update bookmark table(record contains around 500 rows ) from client side file. Currently i have implemented like this
Code:
RPCManager.startQueue();
for (Record record : records) {
record.setAttribute("BOOKMARK_ID", bmId);
DataSource.get("wm_bookmark_data").addData(record, new DSCallback() {
@Override
public void execute(DSResponse dsResponse, Object data, DSRequest dsRequest) {
// some code
}
}, dsReq);
}
RPCManager.sendQueue();Is there a way of updating these rows in a batch ,a single add call for all records so it creates a single connection to DB ?