db4o

Turbine with Db4objects.Db4o.Linq.dll gives Unable to load one or more of the requested types exception

...

Am I wrong in wanting to roll my own Authenticate / Authorize system given the following requirements?

In my pet project I want to have a user system with the following requirements: It needs to work with Db4o as a persistance model I want to use DI (by means of Turbine) to deliver the needed dependencies to my user model It needs to be easy to plug in to asp.net-mvc It needs to be testable without much hassle It needs to support anonym...

Maintaining backwards compatibility with my object database?

I am writing an application using an object database (db4o) and in agile fashion will be starting from a small, minimal implementation and iteratively adding features from there, while releasing new versions of the software as I go. The main question I have is how to maintain backwards compatibility for the database, as new implementati...

db4o mvc index page to detail page

Hi, in a MVC application it is quite common to have a list of objects that you click to see detail and / or edit. When using a relational db, this is achieved by using the primary key or id: <%= Html.ActionLink(dinner.Title, "Details", new { id=dinner.DinnerID }) %> How would you do this using an oodb such as db4o? Thanks! ...

Can/should I use WeakReference in my complex object structure with db4o?

I'm considering to port an application to db4o. The data model consists of lots of small objects with a lot of references between each other. For example, I have a book which points to an author and chapter. Chapters have sections, sections have large blobs of text, images, and they reference characters mentioned. I think it should be p...

Caching big children in data model with db4o

I have a data model with a skeleton (metadata) and large data objects. I'd like to keep the skeleton in memory and hold weak references to the data objects. I understand how I would implement this with plain Java, how I would create a WeakHashMap and clean up etc. But I'm wondering what would be the best way to resurrect the data objects...

Is DB4O Replication faster than SQL Server Merge Replication?

Does the replication system that comes with DB4O work well? Basically I would like to know if anyone has some good numbers on the record throughput of their replication system and if it handles concurrency errors gracefully or not. What is the relative performance difference between SQL Server's merge replication between two SQL server...

Stored IEnumerable dissapears on restart debug, but recreating IObjectServer and IObjectClient in one unit test is ok

I'm storing an IUser object in a Db4o database as follows (client is an IObjectClient): public Guid AddUser(IUser user) { lock (userLock) { user.Id = Guid.NewGuid(); client.Store(user); client.Commit(); } return user.Id; } The implementation of IUser that is used here has the field that is discr...

Loading an object from a db4o database.

I am developing an e-commerce website that utilises db4o as the backend. All was well until last week when I came across a problem that I have been unable to solve. The code below is quite straight forward. I open a database file, save an object and then try to retrieve it. However I get nothing back. The "users" variable has a count...

db4o, Linq, and UUID's

Apparently the db4o website was recently redone, and now old urls are giving 404 errors. Everytime I think I've found the answer, I get a 404 error. I have a simple db4o database I've setup to store people. public class Person { public string Firstname { get; set;} public string Lastname {get;set;} } I've been able to run L...

Db4o select random objects

Does anyone know how to select random objects from a Db4o db? ...

Db4o Tree structure C#

Hi Everyone I'm new to db4o and i'm trying to figure out if it's possible to do the following: public class Page { public Guid ID {get;set;} public Page Parent {get;set;} public IList<Page> Children {get;set;} public String Name {get;set;} public String Depth {get;set;} } When I save the page i have it's parent o...

How should I use DB4O in ASP.NET

I'm interested in using DB4O in asp.net mvc applications. However I can't find any good samples that show how to set things up. For example, do I have to create a custom IHttpModule that manages the lifetime of a DB4O server instance? Any pointers to useful articles and sample code would be excellent. Thank you. ...

Db4o select performance

Hi, I have 7000 objects in my Db4o database. When i retrieve all of the objects it's almost instant.. When i add a where constrain ie Name = "Chris" it takes 6-8 seconds. What's going on? Also i've seen a couple of comments about using Lucene for search type of queries does anyone have any good links for this? ...

Db4o StartsWith and ignore case

Hey guys, The following query takes a while to return: db.Query<Person>(x => x.StartsWith("Chr", StringComparison.CurrentCultureIgnoreCase)) is there a way to get this working correctly? ie faster? ...

linq to Db4o not using index

Hi, I'm trying db4o and i'm having bad performance when using linq to db4o. (using 7.12) Here is my configuration : var configuration = Db4oFactory.Configure(); configuration.ObjectClass(typeof(MyTest)).ObjectField("MyInt").Indexed(true); Here is the object i'm trying to save : public class MyTest { public int M...

db4o on shared hosting with asp.net MVC

I'm wanting to use DB4o on an asp.net MVC project i'm working on but wondering if anyone has got this working on shared hosting plan, have contacted discountasp and asked them and they said go to the forum as they were not sure if they supported it or not or any configuration that would be needed. but the forum wont let my post on becau...

Maven and db4o dependency

I'm intrigued to test new frameworks in the Java world, and decided to create a new project that takes advantage of Maven and db4o. I'm starting to get a hang of Maven, but I have a hard time adding db4o as a dependency to the project. First problem is that db4o doesn't exist in the official Maven repositories. Next up comes the problem ...

WPF DataGrid issue with db40

I am using the following code to populate a wpf datagrid with items in my db4o OODB: IObjectContainer db = Db4oEmbedded.OpenFile(Db4oEmbedded.NewConfiguration(), "C:\Dev\ContractKeeper\Database\ContractKeeper.yap"); var contractTypes = db.Query(typeof(ContractType)); this.dataGrid1.ItemsSource = contractTypes.ToList(); Here is the XA...

db4o Indexing problem - Not Working? Poor performance?

Hi there, I'm attempting to use db4o as the back-end for my new website. I've set things up, as I thought sensible, and have inserted about 5k records (of only one object type, with about 7 primitive fields). As per some blog posts I've read, I've setup the properties as non-automatic properties, and tried to set indexes on the priva...