CubeLite
(Cube Lite)
November 25, 2018, 3:22am
1
when alter the same schema server times, and restart dgraph alpha, got below output, doest it normal, or we must not alter the same schemas? if a app alter a schema when it start every time, this will happen!
I1125 11:13:28.921794 2672 mutation.go:181] Done schema update predicate:"_predicate_" value_type:STRING list:true
I1125 11:13:28.921794 2672 mutation.go:181] Done schema update predicate:"industry" value_type:STRING directive:INDEX tokenizer:"term"
I1125 11:13:28.922794 2672 mutation.go:181] Done schema update predicate:"boss_of" value_type:UID
I1125 11:13:28.922794 2672 mutation.go:181] Done schema update predicate:"industry" value_type:STRING directive:INDEX tokenizer:"term"
I1125 11:13:28.922794 2672 mutation.go:181] Done schema update predicate:"boss_of" value_type:UID
MichelDiz
(Michel Diz)
November 25, 2018, 3:39am
2
It is recommended to update Schema only when necessary.
CubeLite
(Cube Lite)
November 25, 2018, 3:46am
3
that means the app has to controls when to update schema, right? so the app have to detect whether the schmea is changed or not.
I think it’s much better if database do the detect, when alter the schema do nothing if it’s the same as last, the app will be very smooth
MichelDiz
(Michel Diz)
November 25, 2018, 3:48am
4
You don’t have the control of it?
If you need to edit the Schema use Ratel UI tho. Don’t use in the client. But if you’re going to use in the client, please do some control of that flow.
Cheers.
CubeLite
(Cube Lite)
November 25, 2018, 3:55am
5
ok, I see, that just my suggestion, thanks for your confirm
system
(system)
Closed
December 25, 2018, 3:55am
6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.