dotnet run -- projections -r
deleted streams and events
#3828
Unanswered
kopfrechner
asked this question in
Q&A
Replies: 1 comment 1 reply
-
dotnet run -- projections --rebuild would rewind all the projected data and rebuild from 0. It's possible they all failed to rebuild. Check your progression table to verify that. If they did fail, you should see oodles of logging if you're on at least Marten 7. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
i just observed some unintended behaviour with the Marten.CommandLine Tool.
It was included as suggested:
https://martendb.io/configuration/cli.html#snippet-sample_using_WebApplication_1
Just short hint, since i think the Extension Methods got updated, they are called now:
The observed behaviour is that when i run
dotnet run -- projections -r
, it deletes all data from the Database.Not sure if i did something wrong in my setup. It already worked at some point for me.
I also want to mention, it is uncritical to me, since i'm working on a Hobby-Project, but maybe to others.
Here is the state before

Here is the state after running the command

It also occured, when i ran
dotnet run -- projections -p <projection-name>
.Marten Setup is this:
Can you see something obvious? Would appreciate some hints.
Best Regards,
Christoph
Beta Was this translation helpful? Give feedback.
All reactions