Re: [elephant-devel] Collection paging

2007-10-04 Thread Mariano Montone
Thanks Ian for your long answer :) : 2007/10/3, Ian S Eslick <[EMAIL PROTECTED]>: > > When you say indexes are not sequential, do you mean UIDs are not > sequentially allocated? I think there is a BDB sequence issue that I've > never worried about that jumps to the nearest 100 when you reconnect

[elephant-devel] Collection paging

2007-10-03 Thread Mariano Montone
Hello, it's me again :S. I would like to know how I can access persistent collection pages efficiently. What I'm trying to do is making work a web list component with elephant. The list component is supposed to support well known navigation commands, like look at the collection in pages, support

Re: [elephant-devel] Best way of getting a collection size

2007-10-02 Thread Mariano Montone
2007/10/2, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > Funny, but I will be coming across this same need very soon and, like > Mariano, it would be great to get that information without having to > traverse all the objects. I think the mixin class would be a great > addition. Mariano, if you do give

Re: [elephant-devel] Best way of getting a collection size

2007-10-02 Thread Mariano Montone
> > Perhaps we could provide a mixin class that automatically maintains > this count on the lisp side for a user subclass of persistent- > collection? Ok. I may try that. It's astonishing for me that the BDB api does not provide such functionality. Thanks, Mariano ___

[elephant-devel] Best way of getting a collection size

2007-10-02 Thread Mariano Montone
Hello, I would like to know which is the best way to get the size of a persistent-collection (for example the number of instances of some class). I haven't be able to find a method. And uploading all the objects to memory to count them is not an option. Cheers, Mariano

Re: [elephant-devel] DB Transactions and UI

2007-06-28 Thread Mariano Montone
Of course, ultimately, there is no magic that is going to solve all the variations of these kinds of problems. Even short lived transactions require that you think carefully about your application- level policies and potential side effects. In general I work from the user constraints and then t

Re: [elephant-devel] DB Transactions and UI

2007-06-28 Thread Mariano Montone
> There are cases in which a user wants to perform several operations in > a transactional way. Do you have examples? The only cases where my own apps needed several pages for an operation were creation operation, IIRC. On the other hand, there is at least one famous example, namely most online

Re: [elephant-devel] DB Transactions and UI

2007-06-28 Thread Mariano Montone
2007/6/28, Ian Eslick <[EMAIL PROTECTED]>: Just a few short comments: 1) I think that DBs are designed for certain kinds of short-running transactions, but over time have been co-opted into supporting longer and more complex ones. Which DBs are you talking about in particular? I'm interested

[elephant-devel] DB Transactions and UI

2007-06-27 Thread Mariano Montone
Hello, this mail is quite off-topic. It is not related to elephant itself, but to user interface design and databases. I think there are problems with the way db transactions work and how the user interacts with the application. I've been developing web applications so far, so I'll be d