[KPhotoAlbum] Tokens in big xml db

albert at yabacs.net albert at yabacs.net
Wed Aug 23 22:42:04 BST 2006


Hi Christoph,

the file looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<KPhotoAlbum version="2" compressed="0" >
 <Categories>
 </Categories>
 <images>
...
  <image width="720" startDate="1994-11-19T00:00:00" height="560"
endDate="1994-11-19T00:00:00" md5sum="45b869ecca8a369a7b47a4f17099404e"
file="1994/h_94_2/H94_025.JPG" label="H94_025" angle="0" description="" >
   <options>
    <option name="Folder" >
     <value value="1994/h_94_2" />
    </option>
    <option name="Tokens" >
     <value value="P" />
    </option>
   </options>
  </image>
...
  <image width="-1" startDate="2006-08-19T19:58:18" height="-1"
endDate="2006-08-19T19:58:18" md5sum="aeb61c1cc6934a14ecafddc2a534ff18"
file="2006/h06c/dscf3418.jpg" label="dscf3418" angle="0" description=""
>
   <options>
    <option name="Folder" >
     <value value="2006/h06c" />
    </option>
   </options>
  </image>
...
 </images>
 <member-groups>
  <member group-name="gallery" category="Keywords" member="gallery" />
 </member-groups>
</KPhotoAlbum>

There is no section like your example.
The index.xml was imported in KPA 2.2 from Kimdaba 2.1.

The first image (with token) in this example was added in Kimdaba, the
second (without token) with KPA 2.2 a few days ago.
BTW: I have just seen that the image size of the new image is "-1".
The correct image size is 4256 x 2848.

Opening takes some time :-) The xml file size is about 41 MB.
On my picture server it takes about 14 min with KPA 2.2 if new new picture
is found (checking for new pictures is on).
With index.xml on my local disk KPA 2.2 = 3 min - with the new snapshot
only 70 sec.

greets
Albert

> Hi Albert,
>
> do you have a section like this in your uncompressed 2.2-index.xml-file?
>
>    <Category viewtype="0" icon="cookie" name="Tokens" show="1">
>     <value value="D" id="1" />
>    </Category>
>
> I mean, a <Category /> with name="Tokens"?
>
> Can you one example of an <image>-tag which is tagged with a token.
>
> You have got 124.000 pics in your db? Wow, that's a lot. How long does
> it take for you to open kphotoalbum?
>
> Cheers,
> Christoph
>
> albert-VOEe47XxOh2sTnJN9+BGXg at public.gmane.org wrote:
>> Hi,
>> no, I have used the uncompressed xml from KPA 2.2.
>> I known the problem with the compressed xml and I have posted it here.
>>
>> I have used the same file with 2.2 and the new snapshot - and in 2.2
>> it's
>> o.k.
>>
>> greets
>> Albert
>>
>>> Hi Albert,
>>>
>>> did you use the compressed index.xml generated by KPA2.2 ? These
>>> index.xmls do not contain the Tokens in the categories-tag, just the
>>> IDs
>>> of the Tokens in the image-tags. The relations between tokens and
>>> images
>>> get lost in the compressed index.xml in version 2.2. That has been
>>> fixed
>>> in the snapshot. Did you try open your uncompressed index.xml in the
>>> snapshot?
>>>
>>> best regards,
>>> Christoph
>>>
>
>
> _______________________________________________
> KPhotoAlbum mailing list
> KPhotoAlbum at kdab.net
> http://mail.kdab.net/mailman/listinfo/kphotoalbum
>
>





More information about the Kphotoalbum mailing list