Data Design Limits

Anything QL Software or Programming Related.
User avatar
Giorgio Garabello
Gold Card
Posts: 308
Joined: Tue Jun 30, 2015 8:39 am
Location: Turin, Italy
Contact:

Data Design Limits

Post by Giorgio Garabello »

Can anyone tell me what the limits are for data design (ddf) files?
Specifically:
- How many records can it maintain?
- How many fields can a _ddf file have?

I don't think I've found this information in the documentation, but maybe I haven't looked closely.
Thanks.

Giorgio


User avatar
tofro
Font of All Knowledge
Posts: 3188
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: Data Design Limits

Post by tofro »

It's roughly at the end of the manual, before the PE introduction:
max no of records no limit, except memory (18 bytes/record)
max no of fields 256
max no of files no limit
max no of buffers no limit
max no of indexes no limit
max recordlength only limited by memory
max fieldlength only limited by memory
max no of sortlevels 10
max no of filterlevels 10


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
User avatar
desin
Over Heated PSU
Posts: 134
Joined: Mon May 10, 2021 10:33 am

Re: Data Design Limits

Post by desin »

Hello
i am working the last 25 years with dd files with 600+ entries
the dd front end is imho just bit clumsy so i did make my own
data_design.zip
(224.91 KiB) Downloaded 27 times
Greetings from Switzerland
Markus


User avatar
RalfR
QL Wafer Drive
Posts: 1248
Joined: Fri Jun 15, 2018 8:58 pm

Re: Data Design Limits

Post by RalfR »

Great, thank you!


7000 4E75
User avatar
Giorgio Garabello
Gold Card
Posts: 308
Joined: Tue Jun 30, 2015 8:39 am
Location: Turin, Italy
Contact:

Re: Data Design Limits

Post by Giorgio Garabello »

Thanks to everyone for the answers, I am very interested in datadesign, to use it in my accounting programs. I have always used DBAS but now I need a much more powerful database. I have done some research on the forum but found very few messages, so I thought it wasn't used by anyone. Does anyone of you use it regularly? (I am not talking about the program that displays/edits records, I am interested in using it through APIs). I am studying the manual but there are some things I struggle to understand, it's my fault for not being very good at English, I use Google Translate. Can I ask any of you more 'complicated' questions about certain operations that I have trouble understanding?


User avatar
ql_freak
Super Gold Card
Posts: 581
Joined: Sun Jan 18, 2015 1:29 am

Re: Data Design Limits

Post by ql_freak »

 
As tofro wrote in another message, SQLite is written in C (correct, verified in Wikipedia), I THINK it should be possible to convert it to the QL with C68 or at least with the GCC QL cross compiler. Than we would have a real SQL database. Someone must of course write machine code SuperBASIC extensions, to access it.


http://peter-sulzer.bplaced.net
GERMAN! QL-Download page also available in English: GETLINE$() function, UNIX-like "ls" command, improved DIY-Toolkit function EDLINE$ - All with source. AND a good Python 3 Tutorial (German) for Win/UNIX :-)
User avatar
tofro
Font of All Knowledge
Posts: 3188
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: Data Design Limits

Post by tofro »

ql_freak wrote: Tue Aug 19, 2025 1:41 am  
As tofro wrote in another message, SQLite is written in C (correct, verified in Wikipedia), I THINK it should be possible to convert it to the QL with C68 or at least with the GCC QL cross compiler. Than we would have a real SQL database. Someone must of course write machine code SuperBASIC extensions, to access it.
While sqlite is still a "lite" database, I'd seriously consider it "too heavyweight" for the average QDOSMSQ machine. sqlite compiled binaries work out to between 750k to close to under 1MB (more to the latter usimg our available compilers), which is definitely out of reach for most of our machines.


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
User avatar
Giorgio Garabello
Gold Card
Posts: 308
Joined: Tue Jun 30, 2015 8:39 am
Location: Turin, Italy
Contact:

Re: Data Design Limits

Post by Giorgio Garabello »

ql_freak wrote: Tue Aug 19, 2025 1:41 am  
As tofro wrote in another message, SQLite is written in C (correct, verified in Wikipedia), I THINK it should be possible to convert it to the QL with C68 or at least with the GCC QL cross compiler. Than we would have a real SQL database. Someone must of course write machine code SuperBASIC extensions, to access it.
It could be a nice idea, as soon as you are done send me the software to test :-)


User avatar
Giorgio Garabello
Gold Card
Posts: 308
Joined: Tue Jun 30, 2015 8:39 am
Location: Turin, Italy
Contact:

Re: Data Design Limits

Post by Giorgio Garabello »

Last night I took a test: I wrote a batch procedure to load data to insert a million records into a _ddf file, I managed to do it in about 15 minutes (Under QPC2).

Giorgio


User avatar
RalfR
QL Wafer Drive
Posts: 1248
Joined: Fri Jun 15, 2018 8:58 pm

Re: Data Design Limits

Post by RalfR »

Giorgio Garabello wrote: Mon Aug 18, 2025 3:15 pmI have done some research on the forum but found very few messages, so I thought it wasn't used by anyone.
I actually only know one program that uses the Datadesign engine, namely "Agenda" by Wolfgang Lenerz. It's a calendar program that lets you manage your appointments.


7000 4E75
Post Reply