問題タブ [anydac]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
96 参照

delphi - Anydac TADTable component collation issue

I'm having an issue with sorting strings that have special characters like ^ and ! in a Firebird database.

When using the TADTable component with the following settings and a table that uses collation unicode_ci_ai

The server will put strings that start with ^ before strings that start with !, but TADTable does the opposite. This results in duplicates when bringing down the records.

I'm looking for best practice when sorting strings with special characters. I have to use TADTable (legacy system) and Live Data Window mode for speed.

Thank you.

0 投票する
0 に答える
105 参照

performance - AnyDAC コンポーネントは、FIBPlus コンポーネントよりも SQL クエリの実行が遅くなります

次の SQL コマンドは、約 4,500 レコードを返し、整数値、文字列値、および BLOB (テキスト) 値を含みます。すべてのインデックスが適切に設定されています。さらに、 in句が最適ではないことはわかっていますが、今は気にする必要はありません。SQL コマンドは、firebird 3.0 サーバーで実行されます。

外部アプリケーション(このアプリケーションがFIBPlusコンポーネントを使用していることがわかります) と非常に基本的なサンプルDelphi7 アプリケーション(元のAnyDACデータベース コンポーネント バージョン 8.0.5を使用)で SQL コマンドを実行しました。すべてのレコードをグリッドにフェッチすると、次のパフォーマンスが得られます。

  • FIBPlus を使用した外部アプリケーション ~ 200 ~ 400 ミリ秒
  • AnyDAC を使用する Delphi7 ~ 3.500 ~ 4.500 ミリ秒

Delphi7 プログラムでは、TADQuery を独自の TADTransaction に接続まし。True に変更した TADTransaction の ReadOnly プロパティを除いて、デフォルト設定が両方のコンポーネントに使用されます。

外部アプリケーションが Delphi7 プログラムよりも約 10 倍高速なのはなぜでしょうか。Delphi 7 プログラムを高速化するために変更できるプロパティはありますか?

どんな助けでも大歓迎です...