Skip to content

Other examples? #1

Closed
Closed

Description

@illume

Hello!

Are there any other examples or projects other than the tests? I searched for asyncpg on nulledge/SearchEngines and couldn't find anything.

Currently I'm interested in if you can stream results from/to pg?

Many thanks.

Activity

  1. 1st1 commented on Jul 20, 2016

    @1st1
    Member

    Hi @illume,

    We've only open sourced asyncpg yesterday, so I believe there aren't a lot of examples with it that you can find.

    Currently I'm interested in if you can stream results from/to pg?

    Postgres doesn't provide streaming capabilities. The closest thing you can get is to use cursors to efficiently iterate over huge result sets.

  2. illume commented on Jul 20, 2016

    @illume
    Author

    Aha! Well that explains why I can't find anything on the internet about it.

    If I have one row that is about 1MB (bytea https://www.postgresql.org/docs/9.5/static/datatype-binary.html), does that mean I have to wait until it is entirely written in a buffer before getting access to the full buffer? Or can I get access to the buffer with an index of where it is up to? I guess I will look through the source.

    I will also be using LISTEN and NOTIFY ( https://www.postgresql.org/docs/9.5/static/sql-listen.html ).

    Anyway... looking forward to playing with it some more.

  3. 1st1 commented on Jul 20, 2016

    @1st1
    Member

    I will also be using LISTEN and NOTIFY ( https://www.postgresql.org/docs/9.5/static/sql-listen.html ).

    Yes, see issue #2. We'll implement this shortly.

  4. illume commented on Jul 21, 2016

    @illume
    Author

    Oh! Thank you very much :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions