Being less complicated, Immutable data types can very easily be preconfigured to allow high performance in all areas so they should be supported internally.
Stream API
Updating existing data in an immutable data-structure should automatically create different queryable versions.
//example version stream API
map
.get(key)
.versions
.foreach {
case (key, value, version) =>
//do something
}
Creating data-structures API
Following similar API as Scala collections.
//in Scala collections we can create a map as following
val map = mutable.Map.empty[Int, String]
Support
immutable
data-structures.Config
Being less complicated,
Immutable
data types can very easily be preconfigured to allow high performance in all areas so they should be supported internally.Stream API
Updating existing data in an immutable data-structure should automatically create different queryable versions.
Creating data-structures API
Following similar API as Scala collections.
Following above In SwayDB this should be
In Java this would be