Proper way to seed tickers #145
Replies: 2 comments 3 replies
-
|
@farisdzafic I fixed the issue with duplicate at 2.4.4 can you plase try again |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
Sorry I don't have an answer, but I wonder if this is related to an issue I am having...see #168 it appears to be the same constraint that is violated, and almost the same scenario...stop and restart. Your scenario is a few more moving parts than mine. |
Beta Was this translation helpful? Give feedback.
0 replies
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 team,
I would like to have the possibility to seed the database with all tickers on startup, with the possibility to modify the seed code and apply changes on the next run.
My idea was to use TickerManager, but I can only insert a ticker on the first run (and got an exception on the next run because the record already exists).
The "Add or Update" feature was not possible because I needed a TickerId to update, which I didn't have at startup.
I can make a query to the database to get the TickerId, but that seems like a workaround.
Perhaps we could consider implementing an AddOrUpdate function in TickerManager or exploring alternative mechanisms.
Is that the way to do it, or am I missing a more elegant approach?
Beta Was this translation helpful? Give feedback.
All reactions