Plpgsql Insert Performance Test

Source: Internet
Author: User
Tags intel pentium

Sometimes you need to execute some SQL scripts, with logical control statements, and do not want to use the high-level language C #, Java and the like, you can directly use Plpgsql, similar to Oracle's Plsql.

1Do language'Plpgsql' $$2 Declare3Iinteger;4 begin5   --raise notice ' Hello World ';6   7    forIinch 5..100000Loop8     Insert  intoDbo.a_org_type (id, des)9     ValuesI'shang Hai Xu Hui');Ten   EndLoop; One End; A $$ -  - --Select COUNT (*) from Dbo.a_org_type; the --Delete from Dbo.a_org_type where ID > 4;

Time-consuming = 1.5 seconds

On Windows7 x64

Intel Pentium CPU B950 2.1GHz

Plpgsql Insert Performance Test

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.