pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Using the indexing and sampling APIs to realize progressive features
2+ messages / 2 participants
[nested] [flat]

* Using the indexing and sampling APIs to realize progressive features
@ 2022-02-03 15:24  hohenstein@cs.uni-kl.de
  0 siblings, 1 reply; 2+ messages in thread

From: hohenstein@cs.uni-kl.de @ 2022-02-03 15:24 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

Hi, 

 

I have some questions regarding the indexing and sampling API.

My aim is to implement a variant of progressive indexing as seen in this
paper (link
<chrome-extension://oemmndcbldboiebfnladdacbdfmadadm/http:/www.vldb.org/pvld
b/vol12/p2366-holanda.pdf> ). To summarize, 

I want to implement a variant of online aggregation, where an aggregate
query (Like Sum, Average, etc.) is answered in real time, where the result
becomes more and more accurate as Tuples are consumed. 

I thought that I could maybe use a custom sampling routine to consume table
samples until I have seen the whole table with no duplicate tuples. 

Meanwhile, with every consumed sample and returned partial answer, I want to
add the tuples consumed to a progressively evolving index.

This would mean that I would have to be able to uniquely identify each row
to be able to add them to the growing index, right? Since OID is deprecated
/ phased out, I am still unsure of how to solve this. 

Does this sound reasonable or is there an obvious flaw in my thinking?

I would also be thankful if there is any material beyond the Postgres
documentation which helps me to start out modifying the source to realize
something like this.

 

Regards

Michael H.

 

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Using the indexing and sampling APIs to realize progressive features
@ 2022-02-03 19:27  Vijaykumar Jain <vijaykumarjain.github@gmail.com>
  parent: hohenstein@cs.uni-kl.de
  0 siblings, 0 replies; 2+ messages in thread

From: Vijaykumar Jain @ 2022-02-03 19:27 UTC (permalink / raw)
  To: hohenstein@cs.uni-kl.de; +Cc: pgsql-general <pgsql-general@lists.postgresql.org>

On Thu, Feb 3, 2022, 8:55 PM <hohenstein@cs.uni-kl.de> wrote:

> Hi,
>
>
>
> I have some questions regarding the indexing and sampling API.
>
> My aim is to implement a variant of progressive indexing as seen in this
> paper (link). To summarize,
>
> I want to implement a variant of online aggregation, where an aggregate
> query (Like Sum, Average, etc.) is answered in real time, where the result
> becomes more and more accurate as Tuples are consumed.
>
> I thought that I could maybe use a custom sampling routine to consume
> table samples until I have seen the whole table with no duplicate tuples.
>
>

I am not sure if I understand correctly, but if this is referring to
faceted search, then then the below may be of some help.

 https://github.com/citusdata/postgresql-hll
https://github.com/hyperstudio/repertoire-faceting

Performance may vary, but it would help you get an idea of the
implementation.
And you also have rollups and cubes, but they get slow over large tables
and require more resources to speed up.

https://www.cybertec-postgresql.com/en/postgresql-grouping-sets-rollup-cube/

If this is not what you wanted, feel free to ignore.

>

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2022-02-03 19:27 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-02-03 15:24 Using the indexing and sampling APIs to realize progressive features hohenstein@cs.uni-kl.de
2022-02-03 19:27 ` Vijaykumar Jain <vijaykumarjain.github@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox