From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 38D9FBBCA for ; Thu, 28 Feb 2008 21:05:28 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAADKjxkeBx2Aon2dsb2JhbACQcQEBAQEBBgQGCQgYnRw X-IronPort-AV: E=Sophos;i="4.25,421,1199660400"; d="asc'?scan'208";a="9720950" Received: from nef2.ens.fr ([129.199.96.40]) by mail3-smtp-sop.national.inria.fr with ESMTP; 28 Feb 2008 21:05:27 +0100 Received: from clipper.ens.fr (clipper-gw.ens.fr [129.199.1.22]) by nef2.ens.fr (8.13.6/1.01.28121999) with ESMTP id m1SK5OWb015265 ; Thu, 28 Feb 2008 21:05:24 +0100 (CET) X-Envelope-To: caml-list@yquem.inria.fr Received: from [129.199.156.65] (rezo-156-65 [129.199.156.65]) by clipper.ens.fr (8.13.1/jb-1.1) id m1SK5MTX004050 ; Thu, 28 Feb 2008 21:05:22 +0100 (MET) Subject: Re: [Caml-list] Long-term storage of values From: Mathias Kende To: Dario Teixeira Cc: caml-list@yquem.inria.fr In-Reply-To: <191751.36007.qm@web54607.mail.re2.yahoo.com> References: <191751.36007.qm@web54607.mail.re2.yahoo.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-XeTsHesv4nHouSjUMRvg" Date: Thu, 28 Feb 2008 21:05:17 +0100 Message-Id: <1204229117.7341.4.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.21.92 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.1.4 (nef2.ens.fr [129.199.96.32]); Thu, 28 Feb 2008 21:05:24 +0100 (CET) X-Spam: no; 0.00; marshalling:01 mathias:98 mathias:98 vrier:98 caml-list:01 data:02 converted:04 marshalled:04 distinguish:05 problem:05 probably:07 manually:08 jeudi:09 magic:10 versions:11 X-Attachments: cset="UTF-8" type="application/pgp-signature" name="signature.asc" --=-XeTsHesv4nHouSjUMRvg Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Le jeudi 28 f=C3=A9vrier 2008 =C3=A0 18:41 +0000, Dario Teixeira a =C3=A9cr= it : > This strikes me as problem bound to be common. How do you guys typically > solve this sort of situation? =20 I use a "magic" value at the beginning of the marshalled DB to distinguish between different versions of the type and I write the code to convert from one type to the next version. The result is as fast as simple marshalling except in the few case were all the data must be converted, but I need to write manually the code to convert the type to a new version (probably not worse than what is needed the convert it to xml). Mathias --=-XeTsHesv4nHouSjUMRvg Content-Type: application/pgp-signature; name=signature.asc Content-Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iQIVAwUAR8cT/dv6UPzhiq/GAQJDpQ/9E8I08Y3X6WJGzxvxp5LCroZsYhqOmkPU T826ES+FyEfyC2c/ICZf3uC+nik09BSAPgzvuFdkLcoBSN97JMWZN6/TqpAWatc7 ijiE9aqvXZuGy4AYeFh6Ve5lI7FJlyeb1xZPSrSvzoMQneQhKTu+csjPSQe3UBlr r2pMn12xmCMloxEXUq+VdTuEG1LKtWGCQFRSJ8wNuCnz7est6sObNNxc+p2zCpcF WU8VkWVaUJZJ1kffcjcE/aKF2xlg68+oZVW8Gv6ePmdoglcdFbEzB/X9YVHut22r oqvE5Iox9XdFiZNwi3oTDquBvNbop8t/jawRsn9/YFatY8dFyRoATdGrDk9OO05n 0pz5GrqwqEpfR2DfvkZhFhDz9MOHMCGy3pgrJruEu4yzlMo8S41XErNBr7HLT4sY qUEF2OOMJPPTFkuFNI1s5CqLlTLPFVtByDXxxvaHM3kF8wfCgZl5ga5E8e0vrA/y IYa5EaSqruD0TShF/C8addtcxZGSpXUlyLTUJ2JroWRFXu9vX/6fAKVmJssYL77I n3Y+vhouC+WTu/rcJmgx32AN5OIuREkst89Iv5paRdTpCx+T0+iZqoEiyRpWf+2E wL9St+DQsTmVdcEhqsSmAFenfdVDxI2VRRxF41iJQlX89Fs1QiYf7CJvMytl/mOm yXiw8ssupzg= =m+CG -----END PGP SIGNATURE----- --=-XeTsHesv4nHouSjUMRvg--