1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

DB入力ノードにクエリを書き込んで高速に読み込む(SPSS Modeler データ加工逆引き9-8)

Last updated at Posted at 2022-11-14

DB入力ノードにクエリを書き込んで高速に読み込む(SQLプッシュバック)

スクリーンショット 2022-11-07 18.28.46.png

この記事は逆引き9-6を前提に書かれています。先に参照ください。

1.想定される利用目的

・大規模なデータベースを入力にした際のデータ加工速度の向上

2.サンプルストリームのダウンロード

3.サンプルストリームの説明

スクリーンショット 2022-11-07 18.29.40.png

a.入力するデータは以下の通りです。読み込み時点で[Cate]が[1]に絞り込まれています。
図1.png

DB接続は以下の記事を参考にしてください。

b.[条件抽出]ノードを編集します。
図2.png

[テーブル]を実行します。読み込み時点でレコード(行)が絞り込まれており、後続のストリームでもSQLプッシュバックが有効であることがわかります。
図4.png

図3.png

注意事項

今回の処理はシンプルであるためSQLクエリを利用する恩恵は少なく、同じ内容を後続のストリームで記述しても速度に変化はありません。以下の記事のように速度を稼げる処理かどうかを見極めて利用します。また速度のみならず、多くの利用者の利便性を上げるためにテーブルを結合し行と列を絞り込んだ読み込みのルーチンとして利用するケースも想定されます。

4.参考情報

SQLプッシュバックを解説した記事

SPSS Modeler ノードリファレンス目次

SPSS Modeler 逆引きストリーム集(データ加工)

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?