prooph / event-store-doctrine-adapter Goto Github PK
View Code? Open in Web Editor NEW[Deprecated] Doctrine Adapter for ProophEventStore
Home Page: http://getprooph.org
License: Other
[Deprecated] Doctrine Adapter for ProophEventStore
Home Page: http://getprooph.org
License: Other
It should not be possible to start a second transaction if adapter is in an active transaction.
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?
Depends on prooph/event-store#60
Could you provide more detailed documentation, about how to configure this?
and use after_success instead of after_script for it
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?
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.
as required by the interop/container package 1.0
Depends on prooph/common#36
Please update schema files. Missing causation_id
and causation_name
fields.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.