Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

QueryFieldAccessors

Benchmark on performance of different Qurry Field Accessors in Delphi

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

Query Field Accessors

“The trouble with old men is they remember so many things that ain’t so.”
-Mark Twain

Here is a scenario you've faced before:

  • You need to loop through some TDataSet records. For each record you need to examine multiple fields.

What is the best solution?

  1. FieldByName
  2. FieldByNumber
  3. Hard coded field names
  4. Local references to each field
  5. Something else?

Everyone knows FieldByName is way too slow, right?

Here is your chance to find out...

Query Field Accessors