GithubHelp home page GithubHelp logo

sql-tuning's Introduction

🚀 조회 성능 개선하기

A. 쿼리 연습

* 실습환경 세팅

$ docker run -d -p 23306:3306 brainbackdoor/data-tuning:0.0.1
  • workbench를 설치한 후 localhost:23306 (ID : user, PW : password) 로 접속합니다.

활동중인(Active) 부서의 현재 부서관리자 중 연봉 상위 5위안에 드는 사람들이 최근에 각 지역별로 언제 퇴실했는지 조회해보세요. (사원번호, 이름, 연봉, 직급명, 지역, 입출입구분, 입출입시간)



B. 인덱스 설계

* 실습환경 세팅

$ docker run -d -p 13306:3306 brainbackdoor/data-subway:0.0.2
  • workbench를 설치한 후 localhost:13306 (ID : root, PW : masterpw) 로 접속합니다.

* 요구사항

  • 주어진 데이터셋을 활용하여 아래 조회 결과를 100ms 이하로 반환

    • Coding as a Hobby 와 같은 결과를 반환하세요.

    • 각 프로그래머별로 해당하는 병원 이름을 반환하세요. (covid.id, hospital.name)

    • 프로그래밍이 취미인 학생 혹은 주니어(0-2년)들이 다닌 병원 이름을 반환하고 user.id 기준으로 정렬하세요. (covid.id, hospital.name, user.Hobby, user.DevType, user.YearsCoding)

    • 서울대병원에 다닌 20대 India 환자들을 병원에 머문 기간별로 집계하세요. (covid.Stay)

    • 서울대병원에 다닌 30대 환자들을 운동 횟수별로 집계하세요. (user.Exercise)



C. 프로젝트 요구사항

a. 페이징 쿼리를 적용

b. Replication 적용

sql-tuning's People

Contributors

brainbackdoor avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.