You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, via #14495 (comment) I know that I can run SHOW VSCHEMA KEYSPACES to get a list of all the foreign key mode settings for all existing vschemas. Is there also a way to functionally differentiate the two modes that I could run in a test on the specific database/keyspace? Are the modes somehow different in a way that I can really confirm that the database I am talking to currently runs which mode?
This would be useful for tests that need to know and confirm which mode they are running against (as a simple CREATE DATABASE currently creates a database/keyspace with foreignKeyMode=unmanaged by default.
The text was updated successfully, but these errors were encountered:
Well from the user stand-point of an app connected to Vitess, the two modes should functionally be the same. There should be no difference in the query results that they receive. The only difference is how the binlogs for MySQL would look like and how all the other features of Vitess using Vreplication will work in the managed mode that otherwsie wouldn't for the unmanaged mode.
As you said, Show vschema keyspaces is already a way for an application to tell what mode a certain keyspace is running in. I am not sure what more you are looking for to differentiate the two modes.
Ok, if they indeed should be functionally identical, then we can just run our tests in both modes and look for differences (and also compare to a similar run for MySQL).
Question
Hey, via #14495 (comment) I know that I can run
SHOW VSCHEMA KEYSPACES
to get a list of all the foreign key mode settings for all existing vschemas. Is there also a way to functionally differentiate the two modes that I could run in a test on the specific database/keyspace? Are the modes somehow different in a way that I can really confirm that the database I am talking to currently runs which mode?This would be useful for tests that need to know and confirm which mode they are running against (as a simple
CREATE DATABASE
currently creates a database/keyspace withforeignKeyMode=unmanaged
by default.The text was updated successfully, but these errors were encountered: