EntityBase2.cs (.Net 1.1) serialization

Posts   
1  /  2  /  3
 
    
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39615
Joined: 17-Aug-2003
# Posted on: 02-Jan-2007 11:47:24   

Ah yes, I think I understand. simple_smile Sounds great simple_smile With v2.1, we can make architectural changes so this could be an option. I'll contact you about this soon.

The UnitOfWork generates work queues first, this can weed out a lot of entities from collections which won't be saved anyway. So if you call that routine first (as it is done now), you have a smaller working set to work with (just the entities in the insert/update queues + the delete entities).

Frans Bouma | Lead developer LLBLGen Pro
sami
User
Posts: 93
Joined: 28-Oct-2005
# Posted on: 02-Jan-2007 12:15:45   

So I if I got it right, you would not need custom sink with this implementation? In that case would it be possible for LLBLGen to support this fast serialization out of the box?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39615
Joined: 17-Aug-2003
# Posted on: 02-Jan-2007 13:31:44   

sami wrote:

So I if I got it right, you would not need custom sink with this implementation? In that case would it be possible for LLBLGen to support this fast serialization out of the box?

For v2.1, that's indeed the plan, we couldn't make the change earlier, as that would require an architectural change which would require template AND runtime upgrades at the same time, and that won't work (we did that once before, and it was a nightmare).

As it's Simon's code, we have to sort out some legal things and other things, but I think we can manage that.

Frans Bouma | Lead developer LLBLGen Pro
acradyn
User
Posts: 57
Joined: 03-Apr-2004
# Posted on: 02-Jan-2007 16:09:57   

simmotech,

acradyn and mgolubovic: I've got a lot of priority stuff since I got back after the holidays but by the end of the week I'll have something to email to you to try out.

I'm looking forward to seeing it! This is a very important enhancement for us as the serialization performance is the biggest issue with our application.

FYI - I am using .NET 2.0 with LLBLGen 1.0.2005.1 (July 6th, 2006). Do you have a version already for LLBLGen 1.0? We are not planning to move to LLBLGen 2.0 for another couple months as it will require a lot of code changes for us.

Thanks!

-Jeff

llblPowa
User
Posts: 41
Joined: 19-Nov-2006
# Posted on: 03-Jan-2007 03:27:25   

Hello All,

Really nice work and nice articles published on CodeProject.com Simmotech!

Btw, Otis, for when is the v2.1 planned?

Cheers,

LLBLPowa

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39615
Joined: 17-Aug-2003
# Posted on: 03-Jan-2007 10:33:09   

v2.1 beta is planned for end-Q1 2007

Frans Bouma | Lead developer LLBLGen Pro
ZaneZ
User
Posts: 31
Joined: 21-Dec-2004
# Posted on: 19-Jan-2007 03:10:35   

I was wondering if there was a version planned for LLBLGen 1.0, or how difficult it would be to convert the code so it could be used with 1.0?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39615
Joined: 17-Aug-2003
# Posted on: 20-Jan-2007 00:53:03   

ZaneZ wrote:

I was wondering if there was a version planned for LLBLGen 1.0, or how difficult it would be to convert the code so it could be used with 1.0?

There's no version planned for v1.0. I think the code can't really be ported to v1.0 as it needs an architectural change which isn't available in 1.0 (i.e.: template change)

Frans Bouma | Lead developer LLBLGen Pro
mikeg22
User
Posts: 411
Joined: 30-Jun-2005
# Posted on: 03-Jun-2009 23:23:18   

Is this assumption still true for fast serialization?

3) One of the assumptions the fast serializer makes is that entities and collections by and large do not have circular references. ie A Collection 'owns' all of its entities and they in turn 'own' any collections/entities stored in their properties. Do you see any problems with this?

I have a circular reference [A->B->C->A] that is not being serialized/deserialized properly using the FastSerializer. If I turn off FastSerialization everything works fine...

I am using OrmSupportClasses 2.6.9.511 in an Adapter project.

EDIT: To clarify, my situation is: AEntity 1:N BEntity M:1 AEntity (so BEntity is a many to many entity between instances of AEntity)

the references are like: AEntity1-->BEntity1-->AEntity2-->BEntity2-->AEntity3-->BEntity3-->AEntity1

When I use normal binary serialization using the FastSerializer, the last link to AEntity1 is not present, although the foreign key is still set correctly.

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 04-Jun-2009 06:29:16   

Hi Mike. AFAIK, Serialization can deal with cyclic references (binary serialization that is). You should elaborate more on your problem. Better if you open a new trhead for this wink

David Elizondo | LLBLGen Support Team
mikeg22
User
Posts: 411
Joined: 30-Jun-2005
# Posted on: 04-Jun-2009 16:19:21   

daelmo wrote:

Hi Mike. AFAIK, Serialization can deal with cyclic references (binary serialization that is). You should elaborate more on your problem. Better if you open a new trhead for this wink

Now in this thread: http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=16075

1  /  2  /  3