2022-09-04から1日間の記事一覧

時刻の引き算

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秒…