0207|09|
2007|09|10|12|
2008|01|02|03|
2009|01|05|08|10|11|12|
2010|01|02|03|04|09|11|12|
2011|01|02|03|04|05|06|07|08|09|10|11|12|
2012|01|02|03|04|05|06|07|08|10|11|12|
2013|01|02|03|04|05|06|07|08|09|10|11|12|
2014|01|02|03|04|05|06|07|08|09|10|11|12|
2015|01|02|03|04|05|06|07|08|09|10|11|12|
2016|01|02|03|04|05|06|07|08|09|10|11|12|
2017|01|02|03|04|05|06|07|08|09|10|11|12|
2018|01|02|03|04|05|06|07|08|09|10|11|12|
2019|01|02|03|04|05|06|07|08|09|10|11|12|
2020|01|02|03|04|05|06|07|08|09|10|11|12|
2021|01|02|03|04|05|06|07|08|09|10|11|12|
2022|01|02|03|04|05|06|07|08|09|10|11|12|
2023|01|02|03|04|05|06|07|08|09|10|11|12|
2024|01|02|03|

2018-02-02 ―― 何?、この便利な装置 [長年日記]

私、ITエンジニアなのですが、これまでデータベースを真面目に使ったことがありませんでした。

I am an IT engineer, however, I have never used "Data-Base" since now.

私の根っこは、制御系の技術者なので、なんでもかんでも、メインメモリだけを使った、超高速、超小容量の処理をやってしまいます。

Basically, I have been an engineer for control system, so I try to make a system just using ordinary system memory for super-high speed and super-small capacity.

1億人分のシミュレータですら、メインメモリだけで動作させているくらいです。DBはもちろん、HDDやSSDすら使うのを避けてきたくらいです。

Even for a simulator for of 100 million persons, I want to operate the simulation, not using DB HDD, SSD, but just ordinary system memory.

-----

今回、色々な事情があって、初めてSQL DBを使うことになったのですが、

This time, with several reasons, I have to use "SQL DB". To tell you the truth, I was surprised that

―― 何?、この便利な装置

"What is on earth, this convenience device?"

と感嘆しています。

(ちなみに、今使っているのは、PostgresSQLというDBでです)

(Incidently, I am using a DB whose name is PostgresSQL.)

100万データの書き込みの最中に、データ読めるし(メインメモリでもできなくはないが、スレッドとか、情報の保護とか、ファイルのオープンクローズなど、色々と面倒くさい)、

While writing one million data, I can read data (Of course, I can use an ordinary system memory but I also make other mechanisms like threads, information protect, and open/close files).

SQLのメッセージの文法が、直感的で分かりやすい。

Especially, the grammar of SQL message are usable viscerally.

どういう仕組みかは知りませんが、検索も驚くほど速いです。60万人分のデータから、特定の人物の情報を一瞬で表示して見せます。

I don't know how to work a DB, however the speed of search is surprisingly fast. The DB can display the information of specific person from data of 600,000 person.

(続く)

(To be continued)