On Saturday 06 September 2008 10:13, Julien Cornuwel wrote: > Matthew Toseland a ?crit : > > Querying by a ByteArrayWrapper works for you? Really? > > Well, it seems so. But I didn't do the two-times test though... > I made this because getRoutingKey() returns a byte[] and that it is hard > to query on this.
As sdiz said, db4o is unable to create an index on it. So IMHO you should query on a string. This could be Base64.encode(getRoutingKey()) or could be chopped from the FreenetURI (which you can also keep; duplication isn't *that* big a deal) ... This is what I do on the db4o branch, I have much bigger indexes (lookup by key) there. > > > On Thursday 04 September 2008 15:38, batosai at freenetproject.org wrote: > >> Author: batosai > >> Date: 2008-09-04 14:38:32 +0000 (Thu, 04 Sep 2008) > >> New Revision: 22409 > >> > >> Modified: > >> trunk/apps/WoT/src/plugins/WoT/Identity.java > >> trunk/apps/WoT/src/plugins/WoT/OwnIdentity.java > >> Log: > >> Switched to ByteArrayWrapper as suggested by Nextgens. > > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 827 bytes Desc: not available URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20080906/c2fc91f7/attachment.pgp>
