maxtepkeev / architect

A set of tools which enhances ORMs written in Python with more features
Other
391 stars 57 forks source link

Use CREATE TABLE IF NOT EXISTS in Postgres insert trigger #44

Closed soyking closed 6 years ago

soyking commented 6 years ago

As mentioned in #43 , I try to use CREATE TABLE IF NOT EXISTS to replace SELECT THEN CREATE TABLE for accelerating insert action.

I made a simple test on architect-pg-test, and got some results running on my computer. But I am not sure whether it is reasonable enough to prove that.

maxtepkeev commented 6 years ago

Thanks!