[ZODB-Dev] Scalable Container for Log-Entries

Thomas Guettler hv at tbz-pariv.de
Wed Jan 28 04:44:01 EST 2004


Hi!

How would you code a scalable container which holds
log-entries ordered by the time the data was inserted into
the container.

There are several process which add log-entries (ZEO + Filestorage).
The API is very simple: 

1. logContainer.add(data)
2. data_list=logContainer.get(from_date, to_date)

I think of a BTree with the time as key. The time in seconds
since 1970 is not enough because there will be several
log entries per second. If you have an other solution, please
let me know.


I think a IOBTree would be good. But can a IOBTree
handle long integers? 

I think these keys would be possible:

t=time.time()
t2=time.time()
print long(t *10000000)
print long(t2*10000000)
--> 10752829557540122
--> 10752829557540250

Any hints welcome,
 Thomas




More information about the ZODB-Dev mailing list