prooph/pdo-event-store

Use tablespaces?

PatchRanger opened this issue · 4 comments

I could be wrong or missing something - but here is the concern I have:

Interesting thing is that PostgreSQL also has a concept of tablespaces.

Could we replace prefix-based category determination with tablespaces? Is this a meaningful feature-request?)

@prolic I understand. Let's plan it as a feature for next major release? I could be considering promoting usage of the event-sourcing in general and your library in particular at my work - but this point is crucial in terms of deployment: we already have millions of rows and millions of tables sound worrying, if we keep in mind concerns I explained above.

If the amount of tables is a concern, then use the single stream strategy (with one table per aggregate or one table for all events).
The next major release is already in the pipeline and this will not be a problem anymore.

By the way: the single stream strategy is already the recommended one in the docs and not one table per aggregate as you suggested.