Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Cloud Solutions
Postgres Extensions
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Training Courses
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Cloud Solutions
Postgres Extensions
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Training Courses
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
Facebook
Downloads
Home
>
mailing lists
Re: [HACKERS] GSoC 2017: Foreign Key Arrays - Mailing list pgsql-hackers
From
Mark Rofail
Subject
Re: [HACKERS] GSoC 2017: Foreign Key Arrays
Date
February 2, 2021
12:51:18
Msg-id
CAJvoCut_Qw3dV342Lm5uo4gWw-J2MPKKiR8Ro4aWuh-0c+eCjA@mail.gmail.com
Whole thread
Raw
In response to
Re: [HACKERS] GSoC 2017: Foreign Key Arrays
("Joel Jacobson" <joel@compiler.org>)
Responses
Re: [HACKERS] GSoC 2017: Foreign Key Arrays
List
pgsql-hackers
Tree view
Greetings,
I have performed the performance comparison.
The purpose of the test was to compare FK Arrays' performance compared to standard FKs.
The results are shown in the figure below
The Tests were carried as follow
create a referenced table of 1k rows
create an SQL file for each case
referencing table with array FKs
referencing table with array FKs with ELEMENT operator <<@
referencing table with array FKs and GIN index
referencing table with array FKs with ELEMENT operator <<@ and GIN index
referencing table with standard FKs through many2many table
each case contains INSERT statements referencing the referenced table
after which I trigger an UPDATE and DELETE statements on the referenced table
UPDATE: "
UPDATE pktableforarray SET ptest1 = 1001 WHERE pktableforarray.ptest1 = 1000;"
DELETE: "
DELETE FROM PKTABLEFORARRAY WHERE pktableforarray.ptest1 = 999;
"
I repeat this for 10^1, 10^2, 10^3, 10^4, 10^5, and 10^6 rows.
The test data used is attached below (except the 10^6, file size too big)
Changelog (FK arrays):
- v17 (compatible with current master 2021-02-02, commit 1d71f3c83c113849fe3aa60cb2d2c12729485e97)
* refactor "generate_operator_clause"
Changelog (FK arrays Elem addon)
- v3 (compatible with FK arrays v17)
* fix bug in "ginqueryarrayextract"
I will post this patch to the commit fest.
/Mark
Attachment
fk_array_perfomance_figure.png
fk_array_perfomance_figure-1.png
Array-containselem-gin-v3.patch
Array-ELEMENT-foreign-key-v17.patch
test_data.zip
pgsql-hackers
by date:
Previous
From:
"Joel Jacobson"
Date:
02 February 2021, 12:50:42
Subject:
Re: [PATCH] Doc: improve documentation of oid columns that can be zero. (correct version)
Next
From:
torikoshia
Date:
02 February 2021, 13:00:47
Subject:
Re: adding wait_start column to pg_locks
Есть вопросы? Напишите нам!
Соглашаюсь с условиями обработки персональных данных
I confirm that I have read and accepted PostgresPro’s
Privacy Policy
.
I agree to get Postgres Pro discount offers and other marketing communications.
✖
×
×
Everywhere
Documentation
Mailing list
List:
all lists
pgsql-general
pgsql-hackers
buildfarm-members
pgadmin-hackers
pgadmin-support
pgsql-admin
pgsql-advocacy
pgsql-announce
pgsql-benchmarks
pgsql-bugs
pgsql-chat
pgsql-cluster-hackers
pgsql-committers
pgsql-cygwin
pgsql-docs
pgsql-hackers-pitr
pgsql-hackers-win32
pgsql-interfaces
pgsql-jdbc
pgsql-jobs
pgsql-novice
pgsql-odbc
pgsql-patches
pgsql-performance
pgsql-php
pgsql-pkg-debian
pgsql-pkg-yum
pgsql-ports
pgsql-rrreviewers
pgsql-ru-general
pgsql-sql
pgsql-students
pgsql-testers
pgsql-translators
pgsql-www
psycopg
Period
anytime
within last day
within last week
within last month
within last 6 months
within last year
Sort by
date
reverse date
rank
Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Cloud Solutions
Postgres Extensions
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Training Courses
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
By continuing to browse this website, you agree to the use of cookies. Go to
Privacy Policy
.
I accept cookies