I need to update a database list multiple times as shown below.
Is there a more efficient way than calling database.list('path/to/').update(key,value) multiple times? Does it have an effect on the performance?
This is what I'm currently doing:
var newNode = {};
newNode[appointmentUid] = true;
this.database.list('/appointment/users').update(userId, newNode);
this.database.list('/appointment/users').update(worker_uid, newNode);
this.database.list('/appointment/users').update(client_uid, newNode);
this.database.list('/appointment/users').update(patient_uid, newNode);