Tanel Hiir wrote:
> Joe (jnodel...@spinn.com) wrote:
> : Please feel free to correct any errors.
> :-)
> : If I understand correctly, when a TTable is opened, all records from the
> : connected table are loaded to memory (or cached to the hard drive?). If a
> No. BDE reads records in larger blocks and caches in memory but not all
> the table - only part you are accessing in moment. and probably indexes
> are also cached.
> : SetRange command is exicuted on the table, the already obtained records are
> : filtered according to the range.
> No. SetRange works on active indexes - it determines range of valid
> records and reads only those when needed.
> : Is one reason for Paradox being slow on a network is all records from a
> : table are send to the 'client' computer whenever a TTable is open?
> We have found paradox fast when using setrange/cancelrange.
> try setting bde buffer bigger (in Idapi.cfg, system page)
> ca 1/3 of available ram for minimum buffer
> ca 2/3 of available ram for maximum buffer
> only thing what makes opening tables slow is referencial integrity - each
> constraint opens also master table's corresponding index.
> : If a Select..Where.. SQL statement is issued using a TQuery, are all
> : records loaded to memory, then filtered according to the where clause, or
> : are only the records that match the query returned across the network?
> Local SQL can use single field, maintained (and case sensitive ?) indexes
> - if any query where condition matches this kind of index only records
> matching are read. if none of indexes matches then all records are
> scanned.
> with client-server TQuery will fetch _all_ records (and stores them in
> temporary table) if RecordCount or Last is issued - otherwise it retrieves
> record-by-record. not-live result against paradox tables is stored anyway
> in temporary table.
> : Which is faster on a local network, using TTable with SetRange, or a
> : properly designed TQuery with a Select..Where sql statement?
> for paradox tables setrange is faster.
> for c/s tquery.
> : Any words of wisdom on speeding up Paradox 5 (Delphi 1 and 2) on a local
> : network?
> more file handles and big buffer for bde (idapi cfg system page(I hope))
> with w3.1 file handles in autoexec must be increased.
> tanel