You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Tobias Bocanegra (JIRA)" <ji...@apache.org> on 2007/12/02 11:40:43 UTC
[jira] Commented: (JCR-1242) Improve serialization of
NodeReferences for BundleDB PMs
[ https://issues.apache.org/jira/browse/JCR-1242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12547609 ]
Tobias Bocanegra commented on JCR-1242:
---------------------------------------
the references are persisted using the serializer because i simply forgot to do this with the binding :-) and then after a while no one bothered :-). but if course it would be better to use the binding as well.
however i agree with stefan that chaning the read/writerPropertyId() is a bit dangerous. it might be used by third-party persistence manager, and it's not private to jackrabbit core.
i would use a 'read/writeIndexedPropertyId()'.
regards, toby
> Improve serialization of NodeReferences for BundleDB PMs
> --------------------------------------------------------
>
> Key: JCR-1242
> URL: https://issues.apache.org/jira/browse/JCR-1242
> Project: Jackrabbit
> Issue Type: Improvement
> Components: jackrabbit-core
> Affects Versions: 1.3.3, 1.4
> Reporter: Przemo Pakulski
> Priority: Minor
> Fix For: 1.4
>
> Attachments: JCR-1242.patch
>
>
> BudleDB PMs use currently Serializer class to serialize, deserialize node references. Those methods are unefficient, it use string representation of UUID, namespaceURI and localName.
> For UUID rawBytes should be used and for namespaceURI, localName namespaceIndex/nameIndex should be used to improve efficiency of serialization/deserialization.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.