목표 Laravel 기본 DB 연결은 mysql 로, Queue driver 는 Redis 로, Queue 작업 실패시 기록하는 failed table 은 sqlite 로 설정 환경설정 /app/config/database.php'default' => 'mysql’, 'connections' => array( 'sqlite' => array( 'driver' => 'sqlite', 'database' => __DIR__.'/../database/production.sqlite', 'prefix' => '', ), 'mysql' => array( 'driver' => 'mysql’, …… 'redis' => array( 'cluster' => false, 'default' => array( 'host' =..
Select ... Limit 2000, 1000; 과 같은 페이지 나누는 쿼리 튜닝을 조사하다가커버링 인덱스 (http://gywn.net/2012/04/mysql-covering-index/) 에 대해 알게 되었고운영중인 mysql DB 서버에 쿼리를 날려보았다. 일반적 limit 쿼리일 경우 53.8ms ~ 63.1 ms 의 조회 시간이 소요되던것이커버링 인덱스 쿼리일 경우 23.6 ms 로 1/2 속도 향상이 있음을 알 수 있었다. 아래와 같은 커버링 인덱스 쿼리를select a.* from ( select ID from ARTICLE order by UID limit 50000, 10000) b JOIN ARTICLE a ON b.ID = a.ID;Laravel 의 쿼리 빌더로는 어떻게 표현해야..
- Total
- Today
- Yesterday
- CSS
- git
- Mac
- 한글
- iphone
- 워드프레스
- centos
- Prototype
- javascript
- ASP
- JSON
- API
- 안드로이드
- IOS
- iis
- macos
- Android
- mssql
- classic asp
- Linux
- laravel
- Debug
- JQuery
- nodejs
- nginx
- PHP
- Wordpress
- IE
- sencha touch
- Docker
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |