2022-09-01から1ヶ月間の記事一覧

{Kendra}開始方法 (AWS CLI)

AWS

https://docs.aws.amazon.com/ja_jp/kendra/latest/dg/gs-cli.html Amazon Kendraは、ユーザーが自然言語を使用して高度な検索アルゴリズムデータを検索できるようにする、高精度のインテリジェント検索サービスです。 東京リージョンではまだ使用できない。…

{Forecast}開始方法 (AWS CLI)

AWS

https://docs.aws.amazon.com/ja_jp/forecast/latest/dg/gs-cli.html ★実行すると予測器のトレーニングとして30時間消費し、無料利用枠を超過し、500円程度の課金となるので注意-- 1. コマンド等のインストール -- 1.1 aws cli version 2 インストール curl …

{Comprehend}チュートリアル: Amazon Comprehend によるカスタマーレビューからの洞察の分析

AWS

https://docs.aws.amazon.com/ja_jp/comprehend/latest/dg/tutorial-reviews.html -- 1. コマンド等のインストール -- 1.1 aws cli version 2 インストール curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"unzip awscli…

シーケンスのキャッシュ

DB

MySQL (8.0.29)https://dev.mysql.com/doc/refman/8.0/ja/innodb-auto-increment-handling.html#innodb-auto-increment-lock-modes select @@innodb_autoinc_lock_mode; 0 -> 従来型1 -> 連続2 -> インターリーブ デフォルトは2で、複数のステートメントを同…

シーケンス値変更

DB

MySQL (8.0.29) -- 1. シーケンス作成drop table tab1; create table tab1(col1 int primary key auto_increment)auto_increment=50; insert into tab1 values();select * from tab1; -- 2. シーケンス値設定 alter table tab1 auto_increment = 100; ※次に…

filter条件の処理時間影響

DB

filter条件数30、1000万件の場合 MySQL 12 --> 30秒Oracle 0.2 --> 18秒PostgreSQL 0.8 --> 14秒SQL Server 22 --> 22秒 MySQL (8.0.29) drop table tab1; create table tab1( col1 int primary key ,col2 int ,col3 int ,col4 int ,col5 int ,col6 int ,col…

{CodeDeploy}チュートリアル: CodeDeploy を使用して GitHub からアプリケーションをデプロイする

AWS

https://docs.aws.amazon.com/ja_jp/codedeploy/latest/userguide/tutorials-github.html -- 1. コマンド等のインストール -- 1.1 aws cli version 2 インストール curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"unzip…

時刻の引き算

DB

MySQL (8.0.29) drop table tab1;create table tab1(col1 bigint auto_increment primary key,col2 datetime(6) ); insert into tab1(col2) values(current_timestamp(6) ); select * from tab1; select col1, col2, lag(col2) over(order by col1) col2_lag…

NULLのソート順

DB

MySQL (8.0.29)https://www.yoheim.net/blog.php?q=20190103 drop table tab1;create table tab1(col1 int primary key,col2 int);insert into tab1 values(1,1);insert into tab1 values(2,2);insert into tab1 values(3,NULL); select * from tab1 order b…

{CodeCommit}Git および の開始方法AWS CodeCommit

AWS

https://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/getting-started.html 前提: CodeCommit への HTTPS 接続用の Git 認証情報を作成済み -- 1. コマンド等のインストール -- 1.1 aws cli version 2 インストール curl "https://awscli.amazon…

{CodeCommit}AWS CodeCommit の使用を開始する

AWS

https://docs.aws.amazon.com/ja_jp/codecommit/latest/userguide/getting-started-cc.html -- 1. コマンド等のインストール -- 1.1 aws cli version 2 インストール curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"unz…

{CodeBuild}AWS CodeBuild を使用した AWS CLI の開始方法

AWS

https://docs.aws.amazon.com/ja_jp/codebuild/latest/userguide/getting-started-cli.html -- 1. コマンド等のインストール -- 1.1 aws cli version 2 インストール curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"unz…

{APIGateway}REST API リソースの CORS を有効にする

AWS

https://dev.classmethod.jp/articles/serverless-mailform-s3-website-hosting/https://docs.aws.amazon.com/ja_jp/apigateway/latest/developerguide/how-to-cors.html S3(webhosting) --> API gateway(CORS) --> Lambda --> SES -- 1. コマンド等のインス…

オンライン再定義(カラム追加)

DB

更新待ち時間結果 MySQLpt-online-schema-change -> 8秒ALGORITHM=INSTANT -> ほぼ無しALGORITHM=INPLACE -> 1秒ALGORITHM=COPY -> 5秒(カラム追加時間) Oracledbms_redefinition -> 0.5秒alter table -> ほぼ無し PostgreSQLpg-online-schema-change -> 8秒…

オンライン再定義(インデックス追加)

DB

更新待ち時間結果 MySQLpt-online-schema-change -> 8秒ALGORITHM=INPLACE -> ほぼ無しALGORITHM=COPY -> 5秒(インデックス作成時間) Oracledbms_redefinition -> 0.5秒onlineあり -> ほぼ無しonlineなし -> 8秒(インデックス作成時間) PostgreSQLconcurrent…

{CodeArtifact}AWS CLI を使用した開始方法

AWS

https://docs.aws.amazon.com/ja_jp/codeartifact/latest/ug/getting-started-cli.html -- 1. コマンド等のインストール -- 1.1 aws cli version 2 インストール curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"unzip a…

not nullカラムにnvl使用時の実行計画

DB

MySQL (8.0.29) drop table tab1;create table tab1(col1 int not null, col2 int);insert into tab1 values(1,1); select * from tab1; analyze table tab1; explain analyzeselect * from tab1 where ifnull(col1,0) != 0 and ifnull(col2,0) != 0; →NOT N…

レプリケーションのマルチスレッドREDO適用

DB

MySQL (8.0.29)https://gihyo.jp/dev/serial/01/mysql-road-construction-news/0079https://blog.s-style.co.jp/2022/01/8498/ マルチスレッドスレーブ (データベース間: 5.6~、データベース内: 5.7~) 8.0.27からデフォルトで有効 replica_parallel_worker…

{SystemsManager}チュートリアル: Run Command で AWS CLI を使用する

AWS

https://docs.aws.amazon.com/ja_jp/systems-manager/latest/userguide/walkthrough-cli.html https://docs.aws.amazon.com/ja_jp/systems-manager/latest/userguide/systems-manager-setting-up-ec2.html -- 1. コマンド等のインストール -- 1.1 aws cli ve…