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
When storing new information via Rhizome#store, the Rhizome delegates to Continuum#store. The Continuum creates a Uri using the default constructor, Uri(). Because == between two Uri objects is based on the hashCode of the toString representation of a Uri, just using distinct default Uri objects does not create unique Uris for each newly-created Thing.
This results in the Continuum's hashtable to overwrite the Thing value associated with the Uri key. It also probably fucks up the index in the Repertory.
Soooo... time to focus on Uris for each Thing in the system, to ensure that they are, somehow, unique.
void main() {
final u1 = Uri();
final u2 = Uri();
print(u1 == u2); // true
}
The text was updated successfully, but these errors were encountered:
Uris need to, ultimately, be unique, but Continuum creates default
Uri objects which are value-equivalent in Dart.
As an initial solution for text information, use the information
to create a unique Uri.
References #3.
When storing new information via
Rhizome#store
, the Rhizome delegates toContinuum#store
. The Continuum creates a Uri using the default constructor,Uri()
. Because==
between two Uri objects is based on thehashCode
of thetoString
representation of a Uri, just using distinct default Uri objects does not create unique Uris for each newly-created Thing.This results in the Continuum's hashtable to overwrite the Thing value associated with the Uri key. It also probably fucks up the index in the Repertory.
Soooo... time to focus on Uris for each Thing in the system, to ensure that they are, somehow, unique.
The text was updated successfully, but these errors were encountered: