![]() This format can handle more datatypes than JSON does, and it also supports binary data. There is no way to package binary data inside JSON, except by using some conventions for which attributes contain what type of somehow-encoded binary data, on which clients and server must agree beforehand.Īs mentioned, we have changed our internal storage format to VelocyPack in 3.0. JSON only has a UTF-8 string type, but binary data can be just anything (including non-UTF-8 data). The problem with binary data in general is that they do not match the JSON APIs that ArangoDB provides. It would be sufficient to save the array returned by Buffer's toJSON as is. Afterwards this array is stringified and saved, thus the CSV-style value.įrom my point of view it's debatable whether the additional stringification makes sense. The toJSON function will return the Buffer's contents as an array. So it should own functions for storing, queryingĭelete and type of such The JavaScript Buffer object has a toJSON function that will be called automatically when the Buffer object is saved and serialized. To conceal the treatment from the developer (which is They store different (because our normal copying garbageĬollection of such great things is more efficient). Great things have no synchronous replication). Want to have different semantics (ie: you want for such ![]() Handle it differently but as with other documents. In order to deal efficiently with such blobs have to Such unstructured binary large objects and then transferred Sollte es also eigene Funktionen zum Speichern, AbfragenĪs we try to do things efficiently in total, should Und ich wollte nicht versuchen diese unterschiedlicheīehandlung vor dem Entwickler zu verbergen (was beiĪnderer Replikationssemantik auch gar nicht ginge). Sie anders speichern (weil unsere normale Copying GarbageĬollection für solche grossen Dinge eher ineffizient ist). Grossen Dinge keine synchrone Replikation haben). Will man die Semantik anders haben (sprich: man will für solche Solche unstrukturierten grossen Dinge binär übertragen und dannĭamit man mit solchen Blobs effizient umgehen kann muss manĭamit aber anders umgehen als mit anderen Dokumenten. Da wir insgesamt versuchen Sachen effizient zu machen, sollten
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |