On Thu, 9 May 2019 at 16:09, Dan Cutting <[email protected]> wrote:
>
> Thanks for your reply Mathieu.
>
> I think I see what you mean. Something like this:
>
> item_1: sha224-abc
> item_2: sha224-def
> item_3: sha224-ghi

More like:

camliPath:/collections/photo1 = sha224-blabla

but yeah, you got the idea.

> Would this mean potentially renaming all camliPath keys to move an item to 
> the front of the list?

Not necessarily. If the top of the list is e.g. camliPath:/photo1 and
you want to move another photo before that one, you'd just have to
name it to something that comes before in alphabetical order (again,
assuming we are sorting them this way), so to e.g. camliPath:/photo0.
And you wouldn't have to rename any of the others. But yeah, maybe
some situations would involve quite some shuffling around, I'm not
sure.
Btw, I've just remembered two things:
1) in the scanning cabinet we use camliPath:page_number to represent
the set of the scanned pages of a document. It's a bit like what you
want, except we indeed do not mutate the order.
2) In this thread, we were talking about another potential attribute,
i.e. camliPathOrder, but we never ended up actually using it. Maybe we
should revive it at some point.
https://groups.google.com/d/msg/camlistore/xApHFjJKn3M/dyYpJDDAjvgJ

> item_2: sha224-abc
> item_3: sha224-def
> item_1: sha224-ghi
>
> Thanks,
> Dan
>
>
> On Thursday, May 9, 2019 at 1:27:35 PM UTC+1, mathieu.lonjaret wrote:
>>
>> Hi,
>>
>> quick answer, so I'll have to double check, but if I wanted to go the
>> simplest route for that, I'd use the camliPath attribute. If we sort
>> (say lexicographically) - but I don't remember if we currently do -
>> the camliPaths then reordering within a group of camliPaths, simply
>> means renaming the ones you want to reorder.
>>
>> I'll try to go for a better/longer answer later.
>>
>> hth,
>> Mathieu
>>
>> On Thu, 9 May 2019 at 00:43, Dan Cutting <[email protected]> wrote:
>> >
>> > Hi all,
>> >
>> > I’m thinking of using Perkeep to store and manage my large photo library 
>> > (hundreds of GB).
>> >
>> > I’ve been reading through all the Perkeep docs/specs/blog posts/mailing 
>> > lists/etc. but still have many questions.
>> >
>> > I understand each photo could be a file blob referencing a permanode.
>> >
>> > But what would be a good way to represent collections of photos such as 
>> > albums or slideshow that would be arranged in a specific order?
>> >
>> > I’m not sure the best underlying blob representation for this use case. I 
>> > see there are concepts like sets which appear to be unordered. Or 
>> > directories which are key value but also appear to be unordered (or at 
>> > least, not easily "reorderable").
>> >
>> > So perhaps a better approach would be to store the order of photos in a 
>> > custom "slideshow" data blob and just rewrite that whenever I want to 
>> > reorder it.
>> >
>> > Has anybody tried something like this?
>> >
>> > I have lots of other questions about photos, but I'll just start with 
>> > this. :)
>> >
>> > Thanks for a great project!
>> >
>> > Dan
>> >
>> > --
>> > You received this message because you are subscribed to the Google Groups 
>> > "Perkeep" group.
>> > To unsubscribe from this group and stop receiving emails from it, send an 
>> > email to [email protected].
>> > To view this discussion on the web visit 
>> > https://groups.google.com/d/msgid/perkeep/80d6b316-f19f-44f4-95a2-f00633a68d23%40googlegroups.com.
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Perkeep" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/perkeep/0a345d45-0e5b-47b2-8e22-975004636b50%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Perkeep" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/perkeep/CAHcDtnnf_BEv9ntE6kOSceRUqy2nwmMQtEdrhxyTQTYxbGZHpQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to