Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Mark Scranton asked how to watch row-count progress of a raw table load. Doug Lawry suggested onstat -g lap (light appends), which Mark confirmed. Mike Walker explained express loads need a raw table in a logged database and counts show nothing until finished. Mark noted tables with ROWIDs fall back to deluxe load, shown in the message log; Mike added express mode fails for rows over 4065 bytes on AIX.
Auto-generated by Claude from the posts below — may be imperfect; read the full thread.
Mark Scranton — source: IBM Community (ConnectedCommunity.org) Informix forum
I used to know this, but I'm getting old....whilst loading a raw table how can I watch the progress re: num rows? onstat -g pqs doesn't help, nor does select count(*), etc. I know why the normal methods don't work internally - just wondered if anyone else remembers how?
Thanks!
Mark
------------------------------
Thanks!
Mark Scranton
The Mark Scranton Group
mark@markscranton.com
------------------------------
↪ replying to Mark Scranton
Doug Lawry — source: IBM Community (ConnectedCommunity.org) Informix forum
Andreas Legner — source: IBM Community (ConnectedCommunity.org) Informix forum
I might be getting old, or otherwise confused, but ...
why would "select count(*)" not work and return the correct current number of rows for a raw table?
what's the relation between raw table and light appends?
If, on the other hand, we're talking light appends, then would 'raw' in "raw table" even be relevant?
------------------------------
Andreas Legner
------------------------------
↪ replying to Andreas Legner
Mike Walker — source: IBM Community (ConnectedCommunity.org) Informix forum
It's not the raw table itself but getting the count
while
it is being loaded in express mode to check on the progress. The count will not reflect the "new" records until the load has completed. At least I think that's what Mark was looking for.
------------------------------
Mike Walker
xDB Systems, Inc
www.xdbsystems.com
------------------------------
↪ replying to Mike Walker
Andreas Legner — source: IBM Community (ConnectedCommunity.org) Informix forum
Hi Mike,
yup, with "express mode" or "light append" it makes more sense, I didn't guess that from the initial question.
But now, why would I choose raw table for express load? Or was the raw table already present and is now being express-loaded?
Actually, just out of curiosity, what difference would 'express' make, over 'deluxe', with a non-logging table?
BR,
Andreas
------------------------------
Andreas Legner
------------------------------
↪ replying to Andreas Legner
Mike Walker — source: IBM Community (ConnectedCommunity.org) Informix forum
Express loads only work for raw tables in a logged database. You could force deluxe on a raw table I expect but you won't get the performance benefit of the light appends.
------------------------------
Mike Walker
xDB Systems, Inc
www.xdbsystems.com
------------------------------
↪ replying to Doug Lawry
Mark Scranton — source: IBM Community (ConnectedCommunity.org) Informix forum
That's the one Doug! Yes - as I said, I knew it was in my head somewhere. Apparently it wasn't a "foreground thread" ...(that was lame). Used to use "lap" all the time w/ XPS and other related stuff.
Thanks though - appreciate it!
Mark
------------------------------
Thanks!
Mark Scranton
The Mark Scranton Group
mark@markscranton.com
------------------------------
↪ replying to Mike Walker
Mark Scranton — source: IBM Community (ConnectedCommunity.org) Informix forum
Agreed Mike.
A tip for all ... if you create the table raw but it's created with ROWIDs (enforced by an index of course), EXPRESS will get changed to DELUXE (it has to) and fortunately that's reported in the msg log. My current site uses ROWIDs everywhere (yeah - ugh) and I tend to forget so watching the msg log is helpful. You usually know anyway due to load rates being so slow or just overall time of a load being much longer than expected.
------------------------------
Thanks!
Mark Scranton
The Mark Scranton Group
mark@markscranton.com
------------------------------
↪ replying to Mark Scranton
Mike Walker — source: IBM Community (ConnectedCommunity.org) Informix forum
Also FYI we found that you cannot use express mode to load a table where the row size was > 4065 bytes (this was on AIX with its 4K page size).
------------------------------
Mike Walker
xDB Systems, Inc
www.xdbsystems.com
------------------------------
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.