> Le 13 mai 2017 à 15:04, Jörg Knebel via 4D_Tech <[email protected]> a
> écrit :
>
>> On 13 May 2017, at 22:58 AEST, Jörg Knebel via 4D_Tech
>> <[email protected]> wrote:
>> if the content bigger than 1GB? I don’t think TEXT could handle it.
>
> 4D v16 64bit can do big things with texts too, can it not?
>
> What’s the size limit for TEXT (var/filed) in v16-64???
a/ in 32 bits, Document to text with a 500K document seems to be enough.
b/ in 64 bits
using this code (one block):
+++
C_BLOB($_x)
$Mbyte_l:=1*10^6
$i_l:=0
Repeat
$i_l:=$i_l+1
$size_l:=$i_l*$Mbyte_l
SET BLOB SIZE($_x;$size_l)
ASSERT(BLOB size($_x)=$size_l)
Until ($size_l>MAXLONG)
+++
I get a "not enough memory" error when $i_l=1,074 - very close to MAXLONG/2…
With a text document the limit seems to be similar.
using this code (chunk in array):
+++
C_BLOB($_x)
$Mbyte_l:=1*10^6
SET BLOB SIZE($_x;$Mbyte_l)
ARRAY BLOB($_ax;0)
$i_l:=0
Repeat
$i_l:=$i_l+1
APPEND TO ARRAY($_ax;$_x)
Until ($i_l>MAXINT)
+++
I reach the end of the loop with >7Gbyte of physical memory used - besides my
good old macPro fans are complaining ;-)
So,
- the limit 4D can accept seems to be about half a Gbyte
- if I had to manage huge texts, I'd split them in a text array
--
Arnaud de Montard
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************