Alter the same schema server times

example

(Cube Lite) #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

(Michel Conrado (Support Engineer)) #2

It is recommended to update Schema only when necessary.


(Cube Lite) #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


(Michel Conrado (Support Engineer)) #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.


(Cube Lite) #5

ok, I see, that just my suggestion, thanks for your confirm