MongoDB
 sql >> Teknologi Basis Data >  >> NoSQL >> MongoDB

Hirarki multi level data dengan selalu disematkan

Masih ada beberapa perbaikan bug yang tersisa di ember-rails:Kami menderita karena fungsi

extractEmbeddedBelongsTo: function(loader, relationship, data, parent, prematerialized)     {
var reference = this.extractRecordRepresentation(loader, relationship.type, data, true);
prematerialized[relationship.key] = reference;

// If the embedded record should also be saved back when serializing the parent,
// make sure we set its parent since it will not have an ID.
var embeddedType = this.embeddedType(parent.type, relationship.key);
if (embeddedType === 'always') {
  reference.parent = parent;
}

}

Relasi BelongsTo melewatkan ekstraksi objek yang disematkan. Yang salah ada di sini:

extractEmbeddedBelongsTo: function(loader, relationship, data, parent, prematerialized) {
var reference = loader.sideload(relationship.type, data);
prematerialized[relationship.key] = reference;

// If the embedded record should also be saved back when serializing the parent,
// make sure we set its parent since it will not have an ID.
var embeddedType = this.embeddedType(parent.type, relationship.key);
if (embeddedType === 'always') {
  reference.parent = parent;
}

}




  1. Redis
  2.   
  3. MongoDB
  4.   
  5. Memcached
  6.   
  7. HBase
  8.   
  9. CouchDB
  1. Node js batas populasi luwak

  2. mengubah database dari mysql ke mongoDb

  3. Kegagalan Database Transparan untuk Aplikasi Anda

  4. Banyak koneksi luwak

  5. PyMongo upsert melempar upsert harus menjadi contoh kesalahan bool