Document storage method and system based on MongoDB distributed cluster architecture

The invention discloses a document storage method and a document storage system based on a MongoDB distributed cluster architecture. The method comprises the steps of firstly checking whether a stored document which is the same as a to-be-stored document exists in the MongoDB distributed cluster arc...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: FENG ERBIN, ZHU XING, ZHANG XUEJUN
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a document storage method and a document storage system based on a MongoDB distributed cluster architecture. The method comprises the steps of firstly checking whether a stored document which is the same as a to-be-stored document exists in the MongoDB distributed cluster architecture; if so, associating the stored document with the to-be-stored document; if not, judging the size of the to-be-stored document; when the to-be-stored document is greater than or equal to a preset value, storing the to-be-stored document in a GridFS; when the to-be-stored document is smaller than the preset value, converting the to-be-stored document into a BJSON format and storing the to-be-stored document in a Document. The document storage method and the document storage system fully display the advantages of the MongoDB distributed cluster architecture, a small document and a large document are differently read and written, the method and the system have the advantages of NoSQL, low cost, high performan