Subject | Re: [IBO] TIBOQuery to TClientDataSet really slow |
---|---|
Author | lalopus |
Post date | 2003-09-17T16:45:21Z |
why does this only happen when using a ClientDataSet (or maybe
DataSetProvider)?
DataSetProvider)?
>your
> No, not redundantly. IBO makes great use of the metadata.
>
>
> What you describe here is the connection getting the metadata of
> extraordinarily large (in terms of objects) database. As someoneelse
> suggested, you can avoid having this happen every time onconnection by
> enabling schema caching. After that, as long as the metadatadoesn't
> change, the schema querying won't occur on each connection.Properly set
> up, schema caching stores a local cache (just a text file)containing info
> which IBO uses instead of querying metadata across the wire intothe memory
> cache.the server
>
> The metadata version is stored in a table IBO$SCHEMA_VERSION on
> with a version number. IBO creates this table automatically if itdoesn't
> exist, but it doesn't put any data into it - that is up to the DBAwho
> makes the metadata changes. Your users will need to be grantedSELECT
> rights on this table.cache has
>
> The connection object verifies once per connection that the local
> the same version number as the latest on the server. If it's not,the
> connection object regenerates the cache, which will be a fairlyprotracted
> process for your database. It's perfectly OK to deploy a pre-built cache
> along with your client applications. Read up the help on the
> SchemaCacheDir property.
>
> Helen