Memory usage of empty predicates

Do empty predicates take up much memory?
If I have:

type LinkObject {
	skillsLink: String
	notesLink: String
	attachmentsLink: String
	videosLink: String
	floatsLink: String
	submissionsLink: String
	applicationsLink: String
	placementsLink: String

and say the above predicates are never used, will this have a significantly bad effect on memory used, or will they only take up a lot of memory once the predicate’s value is defined?

The second one. If the predicate doesn’t exist, if you mutate with “null” (which Dgraph doesn’t supports) it will be empty. And if it is empty, the query system will ignore it. So nothing will go to memory at all.

But I’m a bit confused (not much) about what you mean by “memory”. Do you mean storage or RAM? I see that sometimes people use “memory” as a synonym of storage.

1 Like

Thanks! By memory I meant storage, yes. Or whatever stores all the nodes and stuff :slight_smile:

Okay, I have assumed it was RAM hehehe, but neither one will be used.

1 Like