VelocityDB & VelocityGraph

Object and Graph Database - ask us, share & let us know what you need.

VelocityDB Version 3.14 Release Notes

Add databasePerType parameter (default == true) to SessionBase.AllObjects for faster lookups

foreach (var obj in session.AllObjects<DomainObject>().Take(10))

Console.WriteLine("id: {0}, products: {1}, likes: {2}, comments: {3}", obj.Id, obj.Products.Count, obj.Likes.Count, obj.Comments.Count);

If you have a lot of different types of objects and many of each, this option will make it fast to find a certain type of object. Otherwise we have to examine each page in every database in order to find all objects of a certain type. If you use this option (on by default) you must persist your objects using the recommended Persist API, i.e.

var look = new DomainObject(session, i);

session.Persist(look);