14 GB less in database size after migrating from FB 3.0 to FB 5.0

46 views
Skip to first unread message

Tomasz Dubiel

unread,
Jun 22, 2026, 7:27:36 AM (11 days ago) Jun 22
to firebird-support
Hello.
Have you ever experienced such database size reduction? It's not just about backup and restore, because there is no size difference when restoring on FB 3.0.
On the database state 3 months ago 31 526 684 records from one table take 24,5 GB
and now on FB 5.0 33 027 910 records take 9 GB. Quite unexpected for us.
Best regards.

Dimitry Sibiryakov

unread,
Jun 22, 2026, 7:32:32 AM (11 days ago) Jun 22
to firebird...@googlegroups.com
Tomasz Dubiel wrote 22.06.2026 13:27:
> On the database state 3 months ago 31 526 684 records from one table take 24,5 GB
> and now on FB 5.0 33 027 910 records take 9 GB. Quite unexpected for us.

Why don't you just compare stats to see average page fill and record version
length?..

--
WBR, SD.

Tomasz Dubiel

unread,
Jun 22, 2026, 7:37:22 AM (11 days ago) Jun 22
to firebird-support
stats_fb5.png
stats_fb3.png

Dimitry Sibiryakov

unread,
Jun 22, 2026, 7:40:39 AM (11 days ago) Jun 22
to firebird...@googlegroups.com
Tomasz Dubiel wrote 22.06.2026 13:37:
> poniedziałek, 22 czerwca 2026 o 13:32:32 UTC+2 sd napisał(a):

I said "compare", not "post here random pictures".

--
WBR, SD.

Omacht András

unread,
Jun 22, 2026, 7:48:18 AM (11 days ago) Jun 22
to firebird...@googlegroups.com

Tomasz,

 

look at „Compresson”:

45,99 (3,0) vs. 150,4

 

András

 

 

CÉGÜNK A LIBRA CSOPORT TAGJA

OMACHT ANDRÁS
Fejlesztési igazgató

LIBRA Szoftver Zrt.
1113 Budapest, Karolina út 65.
+36 (1) 255-3939

in...@libra.hu | www.libra.hu

 

 

--
Support the ongoing development of Firebird! Consider donating to the Firebird Foundation and help ensure its future. Every contribution makes a difference. Learn more and donate here:
https://www.firebirdsql.org/donate
---
You received this message because you are subscribed to the Google Groups "firebird-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebird-suppo...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/firebird-support/ee819d77-a0c0-4cf1-a8b9-2d838752dff1n%40googlegroups.com.

Tomasz Dubiel

unread,
Jun 22, 2026, 7:49:25 AM (11 days ago) Jun 22
to firebird-support
OK, but what can be the reason of such difference?
Best regards.

Mark Rotteveel

unread,
Jun 22, 2026, 7:53:28 AM (11 days ago) Jun 22
to firebird...@googlegroups.com
Do you have a lot of long (VAR)CHAR fields (especially if UTF8) that in
practice are NULL or have relatively short values? If so, this might be
the result of the improved RLE compression in Firebird 5.0 [1].

Mark


[1]:
https://firebirdsql.org/file/documentation/release_notes/html/en/5_0/rlsnotes50.html#rnfb50-engine-rle

--
Mark Rotteveel

Dimitry Sibiryakov

unread,
Jun 22, 2026, 7:54:05 AM (11 days ago) Jun 22
to firebird...@googlegroups.com
Tomasz Dubiel wrote 22.06.2026 13:49:
> OK, but what can be the reason of such difference?

May be https://github.com/FirebirdSQL/firebird/issues/4723 which Google AI
found for me.

--
WBR, SD.

Tomasz Dubiel

unread,
Jun 22, 2026, 8:12:31 AM (11 days ago) Jun 22
to firebird-support
Thank you all very much :-). It's probably the case.

Tomasz Dubiel

unread,
Jun 22, 2026, 8:18:40 AM (11 days ago) Jun 22
to firebird-support
It's about the column:
COROBIONO              T_MAXSTRING /* T_MAXSTRING = VARCHAR(32765) */,

Mark Rotteveel

unread,
Jun 22, 2026, 8:39:23 AM (11 days ago) Jun 22
to firebird...@googlegroups.com
On 22-06-2026 14:18, Tomasz Dubiel wrote:
> It's about the column:
> COROBIONO              T_MAXSTRING /* T_MAXSTRING = VARCHAR(32765) */,

Yes, that will do it (especially if often NULL, or with relatively short
actual values).

Mark
--
Mark Rotteveel
Reply all
Reply to author
Forward
0 new messages