-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(condo): INFRA-202 multiple database sources #4618
base: master
Are you sure you want to change the base?
Conversation
sitozzz
commented
Apr 15, 2024
•
edited
Loading
edited
- Need to deal with adapter cache!!!
- Stand tests
- Load tests
6a93b34
to
db441c8
Compare
1f957e4
to
046aaa6
Compare
db580d7
to
04db392
Compare
04db392
to
87a36fd
Compare
08e8972
to
3c91f98
Compare
3c91f98
to
5e1cab2
Compare
93c44da
to
d51271a
Compare
…fic operation list
…grations problem investigation
22f3eb5
to
4466c7f
Compare
@@ -4,7 +4,7 @@ on: | |||
push: | |||
branches: | |||
- master | |||
pull_request_target: | |||
pull_request: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to switch triggers back
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you I won't forget
apps/condo/package.json
Outdated
@@ -212,5 +212,6 @@ | |||
}, | |||
"resolutions": { | |||
"@types/react": "16.9.17" | |||
} | |||
}, | |||
"dbAdapters": ["ReplicaKnexAdapter"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess CLI arg will be preferable in prepare
|
||
const logger = getLogger('replicaKnexAdapter') | ||
|
||
const MUTABLE_OPERATIONS = ['create', 'update', 'insert', 'delete', 'alter', 'drop', 'truncate', 'rollback', 'del'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO reverted ops are better (explicitly specify, what to take from replica). And if not sure - go to main db
…rgs & invert replica selection filtering query
|