Giter VIP home page Giter VIP logo

dbal-rds-data's People

Contributors

nemo64 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

chatii

dbal-rds-data's Issues

Investigate (and document) transaction isolation

dbal defines Doctrine\DBAL\Connection::setTransactionIsolation which allows to set the transaction isolation to 4 different levels.
https://www.doctrine-project.org/projects/doctrine-dbal/en/2.10/reference/transactions.html

This function runs a SET SESSION TRANSACTION ISOLATION LEVEL query in the background which should fail over the rds-data api (I haven't tested yet).

It doesn't look like it is possible to set the isoluation level within a transaction which is the only way to get something resembling a state.
The documentation says that you can't change the transaction characteristicts during a transaction.

So I should probably document that it isn't possible to use that feature and maybe adjust the platform definition so that it isn't even tried.

Fetch mode 8 not supported (class)

While using the AuditBundle I got Fetch mode 8 not supported which is the Doctrine\DBAL\FetchMode::CUSTOM_OBJECT fetch mode or the PDO::FETCH_CLASS fetch mode.

Seems like this must be supported.

Gracefully handle huge results

The ExecuteStatement documentation warns about huge results.

The response size limit is 1 MB or 1,000 records. If the call returns more than 1 MB of response data or over 1,000 records, the call is terminated.

I tested queries with over 10,000 results and it worked fine but I wouldn't rely on it.

To prepare for the day they actually limit the result, queries should automatically get a LIMIT applied and be paged while iterating the result. The limit should be configurable (including unlimited) but default to 1,000 so the implementation follows the specification.

It may be possible to execute the request for the next page async but I have the experience that guzzle only actually starts the request when accessing it so there needs to be some investigation.

Investigate async-aws

I noticed that some projects switch from the official aws-sdk to async-aws which looks promising.

I should investigate if it is possible to contribute there to add support for the rds-data api and possibly integrate it here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.