Posted By: David S Any way to "lazy load" CLOB data? - 12/20/18 04:23 PM
I'm noticing that the presence of CLOB fields significantly impacts performance when loading a table.

I've got a field being used in memos where the vast majority of the records have fairly small amounts of data in that field. However, there are a handful that are over 4000, making it impossible to use a varchar2 field. So I set it as a CLOB, but that really slows down startup when I open the table. (I do a select * from xxx)

Is there any way to "lazy load" CLOB data until I actually load a specific record? Other than splitting that field into a separate table and explicitly loading it for only that record as it's referenced?
Posted By: David S Re: Any way to "lazy load" CLOB data? - 12/20/18 05:58 PM
Would it work to create a virtual (calculated) field that's used instead of the CLOB field? Would I need to list the fields in the table's SQL property rather than "select *"?

At program load time, I can display nothing. But once the program has started up, the calc field can explicitly load from the CLOB field.

But what happens if I want to update the value of the CLOB field? How does a calc field deal with that?
Posted By: Marco Kalter Re: Any way to "lazy load" CLOB data? - 12/21/18 10:23 AM
I think the best method is to exclude the CLOB from the query, and explicitly fetch and display the CLOB data when the user visits a record.
Posted By: David S Re: Any way to "lazy load" CLOB data? - 12/21/18 05:08 PM
Is there a way to exclude a single field when you use "select * from xxx"?
Posted By: Marco Kalter Re: Any way to "lazy load" CLOB data? - 12/21/18 06:19 PM
No, you would have to explicitly include all columns except the CLOB column.
© Allround Automations forums