Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Node.JS-based NoSQL database and establishing and processing method

A method of establishment and data processing technology, applied in the field of database systems, can solve the problems of large disk space occupation, troublesome environment construction, inconvenient operation of MongoDB, etc., and achieve the effect of fast storage

Pending Publication Date: 2020-08-04
SHANGHAI BILIBILI TECH CO LTD
View PDF6 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Currently commonly used non-relational databases, such as MongoDB, have the following problems in the process of use: it is troublesome to set up the environment, configure users, migrate data, etc.; occupy a large disk space; operate MongoDB middleware MongoDB or mongoose under Node.JS ( An object model tool for convenient operation of mongodb in node.JS asynchronous environment) is inconvenient to operate

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Node.JS-based NoSQL database and establishing and processing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0055] The present invention will be described in detail below in conjunction with the accompanying drawings.

[0056] The present invention stores data and transmits data by using JSON format in the Node.JS environment, and realizes non-relational data storage by establishing an image plus file storage in the memory, and the data can be recovered in time after the application is restarted, and the data can be changed can be archived in time.

[0057] The present invention is based on the establishment method of the NoSQL database of Node.JS, comprising:

[0058] S1, using Node.JS native API (Application Programming Interface) to create a directory with read and write permissions for storing database files, the directory is located on the disk;

[0059] S2, according to given data table (being data set) name, detects whether its corresponding physical data file exists in described directory, if so, execute step S5; If not, execute step S3;

[0060] S3. Use the Node.JS native...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a Node.JS-based NoSQL database and an establishing and processing method. The invention aims to provide a Node.JS-based NoSQL database, which realizes memory and file-based non-relational database storage without depending on a third-party application. According to the scheme, the method comprises the following steps: S1, creating a directory by adopting a Node.JS native API to store a database file; s2, detecting whether a data file corresponding to the data table exists in a directory or not, and if yes, executing S5; if not, executing S3; s3, adopting a Node.JS native API to create an array in a memory to store data, and creating a data record initial index; s4, converting data corresponding to the data table into a character string in a JSON format by adoptinga Node.JS native API, and storing the character string in a data file under a directory; and S5, reading the data file into a memory by adopting a Node.JS native API, and converting the data file intoa JSON format for storage. The method is mainly applied to the field of database systems.

Description

technical field [0001] The invention relates to a NoSQL database based on Node.JS. The establishment method and data processing method of the database are mainly used in the technical field of database systems. Background technique [0002] At present, most NoSQL databases under Node.JS are introduced as third-party applications, such as MongoDB (MongoDB is a database based on distributed file storage, written in C++ language, designed to provide scalable high-performance data storage for WEB applications Solution), Redis (Redis is an open source written in ANSIC language, supports the network, can be based on memory and can be persistent log type, Key-Value database, and provides APIs in multiple languages. From March 15, 2010 Since then, the development of Redis has been hosted by VMware.) etc. [0003] NoSQL database is a general term for all non-relational databases. NoSQL does not use SQL (Structured Query Language abbreviation, which means Structured Query Language) ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/22G06F16/23G06F16/25
CPCY02D10/00
Inventor 王海洋
Owner SHANGHAI BILIBILI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products