Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Panel
borderColor#C3CCD7
bgColor#FCFCFC

Table of Contents

Table of Contents
indent16px

When you run a new analysis of your project, some data that was previously available is cleaned out of the database. For example the source code of the previous analysis, measures at directory and file levels, and so on are automatically be removed at the end of a new analysis. Additional, some old analysis snapshots are also removed.

It is useful to analyze a project frequently to see how its quality evolves. It is also useful to be able to see the trends over weeks, months, years. But when you look back in time, you don't really need the same level of detail as you do for the project's current state. To save space and to improve overall performance, the Database Cleaner deletes some rows in the database. Here is its default configuration:

  • For each project:
    • only one snapshot per day is kept after 1 day. Snapshots marked by an event are not deleted.
    • only one snapshot per week is kept after 1 month. Snapshots marked by an event are not deleted.
    • only one snapshot per month is kept after 1 year. Snapshots marked by an event are not deleted.
    • all snapshots older than 5 years are deleted, including snapshots marked by an event. 
  • All closed issues more than 30 days old are deleted
  • History at package/directory level is removed


These settings can be changed at Administration > General > Database Cleaner프로젝트를 분석하는 경우, 이전의 데이터들 중 일부는 데이터베이스에서 삭제됩니다(Housekeeping). 예를 들면 이전 분석에서 사용한 소스 코드, 디렉토리 레벨 혹은 파일 레벨의 지표 등은 새로운 분석이 수행된 이후 자동으로 삭제됩니다. 또한 오래된 분석 스냅샷 역시 삭제됩니다.

프로젝트의 품질이 어떻게 달라지는지 확인하기 위해서는 가능한 프로젝트를 자주 분석하는 것이 좋습니다. 주간, 월간 및 년간 단위로 추이를 살피기에도 용이합니다. 과거 데이터의 경우 현재 데이터만큼 세부적인 정보를 유지할 필요는 없습니다. 저장 공간을 절약하고 전체적인 성능을 향상하기 위해 데이터베이스 클리너(Database Cleaner)는 데이터베이스의 일부 행들을 삭제합니다. 기본적으로 아래와 같이 동작합니다:

  • 프로젝트 별:
    • 1일이 경과한 후에는 1일 당 1개의 스냅샷 만을 저장합니다. 이 이벤트를 통해 저장된 스냅샷은 이후 삭제되지 않습니다.
    • 1개월이 경과한 후에는 1주일 당 1개의 스냅샷 만을 저장합니다. 이 이벤트를 통해 저장된 스냅샷은 이후 삭제되지 않습니다.
    • 1년이 경과한 후에는 1개월 당 1개의 스냅샷 만을 저장합니다. 이 이벤트를 통해 저장된 스냅샷은 이후 삭제되지 않습니다.
    • 5년이 경과한 후에는 위의 이벤트들을 통해 저장된 스냡샷을 포함한 모든 스냅샷은 삭제됩니다.
  • 30일이 경과한 모든 Closed 이슈는 삭제됩니다.
  • 패키지/디렉토리 레벨의 히스토리는 삭제됩니다.

위의 설정을 변경하려면, Administration > General > Database Cleaner 메뉴를 사용합니다.