Giter Site home page Giter Site logo

event-store-doctrine-adapter's People

Contributors

codeliner avatar jsor avatar oqq avatar prolic avatar sandrokeil avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

event-store-doctrine-adapter's Issues

event_name to short

I use event_name as name of classname, and run out of event_name length in DB. Do you plan give more than 100 chars?

Documentation

Could you provide more detailed documentation, about how to configure this?

TableNotFoundException for existing table

Did someone already had an issue with the doctrine adapter + mysql where the event is written to the table but you still get a TableNotFoundException?

Sascha-Oliver Prolic @prolic 16:41
If you use a single stream, you have to create that table before you run the application

Fábio Carneiro @fabiocarneiro 16:41
I did that, the row is inserted.

Sascha-Oliver Prolic @prolic 16:41
Oho

Fábio Carneiro @fabiocarneiro 16:42
the event is being stored, but the app still says "TableNotFoundException"
Oo

Sascha-Oliver Prolic @prolic 16:42
Can you provide a reproducible script?
Than open an issue an we can solve that
Without a test case it's hard.
Or harder
In proophessor-do f.e. i never saw such an issue

Fábio Carneiro @fabiocarneiro 16:44
@prolic Base table or view not found: 1146 Table 'testdatabase.event_stream' doesn't exist
but on the database itself, I not only have the table, but the events are being written properly

Sascha-Oliver Prolic @prolic 16:44
And you're sure it exists?

Fábio Carneiro @fabiocarneiro 16:45
100%

Sascha-Oliver Prolic @prolic 16:45
Can you provide a test script?

Bradley Weston @bweston92 16:45
The 1146 is the error code from MySQL

Fábio Carneiro @fabiocarneiro 16:45
yep, but then its translated to an exception by doctrine DBAL "Connection"

Sascha-Oliver Prolic @prolic 16:45
Please open an issue at the doctrine adapter repo

Fábio Carneiro @fabiocarneiro 16:46
I'll try to investigate it and create a failing testcase

Sascha-Oliver Prolic @prolic 16:46
@basz can you take that over?

Memory problem when replaying large streams

When replaying a large stream it is possible to run out of memory. Even if the DoctrineStreamIterator iterates over the pdo statement so that only one event is stored in a php property at a time, the entire result set is fetched into php process memory (at least when using MySql RDBMS, other systems were not checked). This is caused by buffered query mode which is default for MySql. You can turn of the mode but the drawback is that you can only run one unbuffered query per connection at the same time.

See chat history for more details.

Solution:
Rewrite DoctrineStreamIterator to use pagination internally and fetch 1000 events at once.

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.