OS: Linux
Shell: bash
In $HOME/.bash_profile or $HOME/.bashrc, write the below.
# bash default prompt name
case $TERM in
kterm|xterm|mlterm|cygwin|vt102|screen)
export PS1="[centos7.0_devel]$ "
esac
PS1 is custom prompt name. If you run Linux prompt.
This blog moved to medium->https://medium.com/@cocoamaemae
Regarding TIPS about IT technologies or OSS which I created.
Thursday, February 25, 2016
Monday, February 1, 2016
TIPS regarding RDB index of MySQL and MariaDB
・The number of index increases too much, it is same as making book fat. Not to increase too much is significant.
・Not mix ASC and DESC. In the case, index is not available.
e.g.
SELECT * FROM t1 ORDER BY key1 DESC, key2 ASC.・If the keys used in where clause and used in order clause are different, index is not available.
e.g.
SELECT * FROM t1 WHERE key21 = 'hoge' AND key22='fuge' ORDER BY key11;
・If you have no idea how to set index which columns, the following order is available
- Create index to all columns
- Execute "explain" to SQL and show index conditions
- Create composite index to keys in possible_keys
・If you used composite index, the left index must be specified in where clause.
Subscribe to:
Posts (Atom)
Front End Development Tools
TaskRunner Tool executing multiple tasks by only one execution. Tasks are like CSS preprocessor, Transpire, Module Bundler, etc... e.g. ...
-
What is partitioning? The structure which divides one table data to multiple data. When not using partitioning, one table data is aggrega...
-
It is general to create multiple branches and manage them parallel when we do the development by using git. Multiple branches should be mer...
-
What's URL encode? URL can be sent only ASCII characters over internet. When doing http request with query parameters, query parameter...