From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Question on bounded / unbounded strings Date: Mon, 26 Sep 2016 09:28:23 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <11ee98f5-d373-4c72-8562-c310cc76817d@googlegroups.com> <5560c627-b10b-4693-adc0-662776cbdb6c@googlegroups.com> NNTP-Posting-Host: vZYCW951TbFitc4GdEwQJg.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:31895 Date: 2016-09-26T09:28:23+02:00 List-Id: On 26/09/2016 01:35, brbarkstrom@gmail.com wrote: > I expect Dimitry wouldn't like putting Bounded_Strings into > Direct_IO files, where they're useful for fields in records that act like > variable length character strings in databases. Surely not. Bounded string is a private type (A.4.4). You *never* use such for any external activity, that would make your program non-portable and thus the DB too. Therefore a text field of Direct_IO element record should always be a subtype of String and never bounded or unbounded string. BTW, in many cases it is better to use Direct_IO rather as a block I/O medium. You never know if all application level objects would fit into a single block. My implementation of external B-trees keeps tree nodes in Direct_IO blocks with indices pointing to the blobs spread over other blocks arranged as a persistent memory pool. So there is no limitation to how large an item could be and no space loss of underfilled blocks. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de