Re: Long text fields
- From: "Dave Mitchell" <mitch500@xxxxxxxxxxxx>
- Date: Mon, 7 Nov 2005 13:28:05 -0500
Hi Dawn,
I don't know whether this will help you or not, but in UniVerse, if I have a
long comment-type field, I have the user enter it in something like Notepad
(or read it in line-by-line from some file using READSEQ), then WRITESEQ the
data out to a uniquely-named file somwhere on the system, and store that
filename in the database.
Then, when I want to read it in again (for display or other functions), I
open the file and, using READSEQ, read it in line-by-line. I have a
subroutine as well that I can use to split/combine lines based on a
separator character(s) within the file (CHAR(254), CHAR(13),
CHAR(10):CHAR(13) combination, or whatever character(s) you want). The
subroutine can also work like the "T" format, separating lines at a
convenient place close to X characters and inserting a separator character.
Dave
"dawn" <dawnwolthuis@xxxxxxxxx> wrote in message
news:1131377262.366623.134490@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> I'm planning to actually code (!) in openQM and UniData beginning in
> January. I'm doing design and experimenting now. In case you think
> I'm an old pickie and this should be a piece of cake for me, I'll
> confess that until now I have always had teams of people working for me
> in the pick arena, so I don't know what most pick developers know. (I
> did my time in heads-down development a coupla decades ago in CICS
> COBOL.)
>
> So now I have some very basic (no pun intended) questions, starting
> with this one.
>
> I have worked with a UniData product that has long text fields (such as
> comment fields) as multvalued with formats like 60T. If I want to
> pass the text as a full string without any value marks, I could replace
> the value marks with a space, but I would think I could define a long
> single-valued field instead to eliminate the need for that.
>
> 1. I haven't looked it up for any particular db, but is there a
> standard longest field across pick environments? (An actual dtabase
> storage restriction)
>
> I would like the database to work in openQM and UniData, but would also
> like it to be compatible with the others -- UniVerse, Revelation,
> jBASE, D3, UniVision if I ever made the application work with those.
>
> 2. I realize the FMT is for display, not storage size, but is there a
> maximum in the FMT in the dictionary, such as FMT(99999T)?
>
> 3. Are there performance implications if I make a long single-valued
> text field instead of multivalued short lines of text? Other
> implications?
>
> 4. These questions might not even be the right ones, so what do you
> consider to be "best practices" related to long text fields in an MV
> environment where the application code will be in languages other than
> DataBASIC (e.g. PHP), retrieving data using a dictionary definition.
>
> Thanks in advance for any help. --dawn
>
.
- Follow-Ups:
- Re: Long text fields
- From: dawn
- Re: Long text fields
- References:
- Long text fields
- From: dawn
- Long text fields
- Prev by Date: Re: Attempt to de-mystify AJAX
- Next by Date: Re: Running D3 on XP-PRO but the D3 service won't start.
- Previous by thread: Re: Long text fields
- Next by thread: Re: Long text fields
- Index(es):
Relevant Pages
|