From gambas at ...748... Wed Apr 8 10:35:48 2015 From: gambas at ...748... (gambas) Date: Wed, 08 Apr 2015 10:35:48 +0200 Subject: [Gambas-devel] Support for postgresql materialized view Message-ID: <5524E864.9060405@...748...> Hi all, i've made a patch to gb.db.postgresql to use materialized view. It simply add materialized view type to the query that fetch tables. Can it be included in the next version of gambas so I don't need to patch it anytime ? thank's in advance. Marco. -------------- next part -------------- A non-text attachment was scrubbed... Name: materialized.diff Type: text/x-patch Size: 1924 bytes Desc: not available URL: From gambas at ...1... Wed Apr 8 11:09:55 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Wed, 08 Apr 2015 11:09:55 +0200 Subject: [Gambas-devel] Support for postgresql materialized view In-Reply-To: <5524E864.9060405@...748...> References: <5524E864.9060405@...748...> Message-ID: <5524F063.1080606@...1...> Le 08/04/2015 10:35, gambas a ?crit : > Hi all, > > i've made a patch to gb.db.postgresql to use materialized view. > > It simply add materialized view type to the query that fetch tables. > > Can it be included in the next version of gambas so I don't need to > patch it anytime ? > > thank's in advance. > > Marco. > > Of course, if you are sure that everything works. Just tell me what is a "materialized" view and what the difference with a normal view is. It can even go in Gambas 3.7.2 if it is backward-compatible (see that as a bugfix). -- Beno?t Minisini From gambas at ...748... Wed Apr 8 12:15:39 2015 From: gambas at ...748... (gambas) Date: Wed, 08 Apr 2015 12:15:39 +0200 Subject: [Gambas-devel] Support for postgresql materialized view In-Reply-To: <5524F063.1080606@...1...> References: <5524E864.9060405@...748...> <5524F063.1080606@...1...> Message-ID: <5524FFCB.5080607@...748...> Hi beno?t , I use that simple patch in all my project using materialized view from almost 6 month , I think it's working well. For the question of difference between standard view and materialized one: A view is a virtual table created everytime you read it , created with a query. A materialized view is a table created by a query that can be updated every time. The main difference is that when a materialized view is created it's stored at creation time or when you update it , and there's no need to be calculated every time you read it. bye, marco. Il 08/04/2015 11:09, Beno?t Minisini ha scritto: > Le 08/04/2015 10:35, gambas a ?crit : >> Hi all, >> >> i've made a patch to gb.db.postgresql to use materialized view. >> >> It simply add materialized view type to the query that fetch tables. >> >> Can it be included in the next version of gambas so I don't need to >> patch it anytime ? >> >> thank's in advance. >> >> Marco. >> >> > Of course, if you are sure that everything works. > > Just tell me what is a "materialized" view and what the difference with > a normal view is. > > It can even go in Gambas 3.7.2 if it is backward-compatible (see that as > a bugfix). > From gambas at ...1... Wed Apr 8 12:33:36 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Wed, 08 Apr 2015 12:33:36 +0200 Subject: [Gambas-devel] Support for postgresql materialized view In-Reply-To: <5524FFCB.5080607@...748...> References: <5524E864.9060405@...748...> <5524F063.1080606@...1...> <5524FFCB.5080607@...748...> Message-ID: <55250400.8050303@...1...> Le 08/04/2015 12:15, gambas a ?crit : > > Hi beno?t , I use that simple patch in all my project using materialized > view from almost 6 month , I think it's working well. > > For the question of difference between standard view and materialized one: > A view is a virtual table created everytime you read it , created with a > query. > A materialized view is a table created by a query that can be updated > every time. > The main difference is that when a materialized view is created it's > stored at creation time or when you update it , and there's no need to > be calculated every time you read it. > > bye, > marco. > Commited in revision #7024. Regards, -- Beno?t Minisini