Alter the same schema server times

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

It is recommended to update Schema only when necessary.

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

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.

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

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.