Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Dev

Packing and GC versus packtime

 

 

Zope dev RSS feed   Index | Next | Previous | View Threaded


ct at gocept

Nov 9, 2009, 4:22 AM

Post #1 of 6 (996 views)
Permalink
Packing and GC versus packtime

Hi,

I'm wondering:

Scenario 1: I pack a storage to a time T and append X transactions after
that

Scenario 2: I append X transactions to a storage and then pack it to time T.

Will those scenarios end up with the same result? I can imagine GC to
get in the way, but I'm not sure about how it does its thing exactly.

The question can also be phrased as: Are the operations "pack" and
"append transaction" for storages commutative?

Christian

--
Christian Theune · ct [at] gocept
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
Zope and Plone consulting and development

_______________________________________________
Zope-Dev maillist - Zope-Dev [at] zope
https://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope )


ct at gocept

Nov 9, 2009, 4:59 AM

Post #2 of 6 (931 views)
Permalink
Re: Packing and GC versus packtime [In reply to]

On 11/09/2009 01:22 PM, Christian Theune wrote:
> Hi,
>
> I'm wondering:
>
> Scenario 1: I pack a storage to a time T and append X transactions after
> that
>
> Scenario 2: I append X transactions to a storage and then pack it to time T.
>
> Will those scenarios end up with the same result? I can imagine GC to
> get in the way, but I'm not sure about how it does its thing exactly.
>
> The question can also be phrased as: Are the operations "pack" and
> "append transaction" for storages commutative?

Dang. Post to wrong list. Please consider this moved to the zodb-dev list.



--
Christian Theune · ct [at] gocept
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
Zope and Plone consulting and development

_______________________________________________
Zope-Dev maillist - Zope-Dev [at] zope
https://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope )


jim at zope

Nov 9, 2009, 5:47 AM

Post #3 of 6 (933 views)
Permalink
Re: Packing and GC versus packtime [In reply to]

On Mon, Nov 9, 2009 at 7:22 AM, Christian Theune <ct [at] gocept> wrote:
> Hi,
>
> I'm wondering:
>
> Scenario 1: I pack a storage to a time T and append X transactions after
> that
>
> Scenario 2: I append X transactions to a storage and then pack it to time T.
>
> Will those scenarios end up with the same result? I can imagine GC to
> get in the way, but I'm not sure about how it does its thing exactly.
>
> The question can also be phrased as: Are the operations "pack" and
> "append transaction" for storages commutative?

Yes, as long as the pack time is before the time of the appended transactions.

Jim

--
Jim Fulton
_______________________________________________
Zope-Dev maillist - Zope-Dev [at] zope
https://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope )


ct at gocept

Nov 9, 2009, 5:54 AM

Post #4 of 6 (934 views)
Permalink
Re: Packing and GC versus packtime [In reply to]

On 11/09/2009 02:47 PM, Jim Fulton wrote:
> On Mon, Nov 9, 2009 at 7:22 AM, Christian Theune <ct [at] gocept> wrote:
>> Hi,
>>
>> I'm wondering:
>>
>> Scenario 1: I pack a storage to a time T and append X transactions after
>> that
>>
>> Scenario 2: I append X transactions to a storage and then pack it to time T.
>>
>> Will those scenarios end up with the same result? I can imagine GC to
>> get in the way, but I'm not sure about how it does its thing exactly.
>>
>> The question can also be phrased as: Are the operations "pack" and
>> "append transaction" for storages commutative?
>
> Yes, as long as the pack time is before the time of the appended transactions.

Right. Cool. Oh joy, oh joy! :)


--
Christian Theune · ct [at] gocept
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
Zope and Plone consulting and development

_______________________________________________
Zope-Dev maillist - Zope-Dev [at] zope
https://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope )


reinout at vanrees

Nov 10, 2009, 5:20 AM

Post #5 of 6 (919 views)
Permalink
Re: Packing and GC versus packtime [In reply to]

On 2009-11-09, Christian Theune <ct [at] gocept> wrote:
> On 11/09/2009 02:47 PM, Jim Fulton wrote:
>> On Mon, Nov 9, 2009 at 7:22 AM, Christian Theune <ct [at] gocept> wrote:
>>>
>>> I'm wondering:
>>>
>>> Scenario 1: I pack a storage to a time T and append X transactions after
>>> that
>>>
>>> Scenario 2: I append X transactions to a storage and then pack it to time
>>> T.
>>>
>>> Will those scenarios end up with the same result? I can imagine GC to
>>> get in the way, but I'm not sure about how it does its thing exactly.
>>>
>>> The question can also be phrased as: Are the operations "pack" and
>>> "append transaction" for storages commutative?
>>
>> Yes, as long as the pack time is before the time of the appended
>> transactions.
>
> Right. Cool. Oh joy, oh joy! :)

Sounds like you're working on your zeo sync tool? :-)

Reinout


--
Reinout van Rees - reinout [at] vanrees - http://reinout.vanrees.org
Software developer at http://www.thehealthagency.com
"Military engineers build missiles. Civil engineers build targets"

_______________________________________________
Zope-Dev maillist - Zope-Dev [at] zope
https://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope )


chris at simplistix

Nov 10, 2009, 6:00 AM

Post #6 of 6 (912 views)
Permalink
Re: Packing and GC versus packtime [In reply to]

Reinout van Rees wrote:
> Sounds like you're working on your zeo sync tool? :-)

zeoraid. It's been around for a while now, but it's finally going to see
some action...

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
_______________________________________________
Zope-Dev maillist - Zope-Dev [at] zope
https://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope )

Zope dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.