Cloning of a MongoDB in Postgres (1)

Source: Internet
Author: User
Keywords nbsp; cloning HTTP through

There is no road in the world, and the people who walk more and more become the way. Why not build a mongodb on http://www.aliyun.com/zixun/aggregation/14171.html ">postgres"?

The Postgres community did not sit on the NoSQL after taking a series of actions.  Postgres has been progressing: integrating JSON and PLV8. PLV8 introduced the V8 JavaScript engine. Manipulating JSON is also simpler (requires validation).

What to do before you start:

Postgres 9.2+ (as of this blog entry, 9.2 are in beta)-http://www.postgresql.org/ftp/source/

V8-https://github.com/v8/v8

Plv8-http://code.google.com/p/plv8js/wiki/plv8

The lowest level of MongoDB is the collection. A collection can be represented by a table:

Character JSON is saved in the Postgres table, easy (see now).

The following implements the automatic creation of collections. Save in the collection table:

Once the table is built, the collection can be created automatically through stored procedures. The method is to first build the table and then insert the table sequence.

Next is the data query. The Find () method is implemented through existing materials.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.