[ipv6calc] ipv6calc and Berkeley DB

Petr Kubat pkubat at redhat.com
Mon Jul 25 08:45:01 CEST 2016


Hello Peter,

thank you for the fast reply.

On 07/23/2016 11:19 AM, Peter Bieringer wrote:
> Hi Petr,
>
> thank you for bringing this up.
>
> I've choosen Berkeley DB sometime in the past to have a common working
> database layer covering
> - EL 5, EL 6, EL 7 and Fedora
> - ability to use Perl for DB generation while using DB inside a C programm
> - no special feature are used, means the C program is only reading the
> DB and the Perl program is only generating the DB
>
> => no need to update the program to use Berkeley DB version 6
>
> If there are long term plans to remove Berkeley DB even version <= 5
> completly from Fedora (and therefore also from upcoming EL) I have to
> change to a different database in the future but keeping compatibility
> for some time.
>
> => what are the plans here for future Fedora and EL versions (e.g. EL 8)?

The current plan is to remove Berkeley DB dependencies by the time EL8 
hits. We might be keeping the Berkeley DB packages in EL8 for the sake 
of compatibility and for data migration tools however.

>
> => which database do you recommend to use then, supported at least since
> EL 6 (as EL 5 will go EOSL next year) in C and Perl on same easy way?
>
>
> Regards,
> 	Peter
>

A lot of projects are changing (or planning to change) to LMDB [1][2] 
which was developed as a replacement of Berkeley DB for the OpenLDAP 
project and, from what I have seen of it, seems to have a similar C API 
to Berkeley DB. The caveat to this is that it is so far only available 
in Fedora and EPEL. As for perl there is a third party wrapper available 
[3] however I do not know how the API compares to current Berkeley DB 
wrappers.

Another alternative is TokyoCabinet [4], which is available in EL6, EL7 
and Fedora. The project however has been already succeeded by 
KyotoCabinet which has unfortunately the same EL availability as LMDB.

[1] https://symas.com/products/lightning-memory-mapped-database/
[2] http://lmdb.tech/doc/index.html
[3] https://metacpan.org/pod/LMDB_File
[4] http://fallabs.com/tokyocabinet/

Petr


More information about the ipv6calc mailing list