【发布时间】:2018-01-20 13:07:34
【问题描述】:
我需要多次更新数据库列表,如下所示。
有没有比多次调用database.list('path/to/').update(key,value) 更有效的方法?对性能有影响吗?
这是我目前正在做的事情:
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);
【问题讨论】:
标签: angular firebase ionic-framework firebase-realtime-database angularfire2