Context in practice - PowerPoint PPT Presentation

1 / 7
About This Presentation
Title:

Context in practice

Description:

Make data public. Throw away data. Projects ... Responsible - privileged users. New objects are automatically part of the currently active context. Privileges ... – PowerPoint PPT presentation

Number of Views:16
Avg rating:3.0/5.0
Slides: 8
Provided by: astro72
Category:

less

Transcript and Presenter's Notes

Title: Context in practice


1
Context in practice
  • and whats new
  • Lorentz center, Wednesday, 21 November 2006

2
Context
  • Handling large amounts of data
  • Work together
  • Work in a consistent way
  • Experiment with source code
  • Know what data and code was used
  • Keep data private
  • Make data public
  • Throw away data

3
Projects
  • Organize in Projects, that have
  • A name and description
  • Users
  • Default privileges
  • Responsible - privileged users
  • New objects are automatically part of the
    currently active context

4
Privileges
  • User Project Astro-Wise
  • MyDB
  • Project with same name as user
  • User-only objects within a project, i.e.user can
    see all data within a projectbut creates data
    that is invisible to others within a
    projectcontext.set_privileges_user_only()contex
    t.set_privileges_project_only()context.set_defaul
    t_privileges()

5
Migrating data
  • Migrating everything from MyDB awe
    dbmigrateall.py AWAUSER KIDS
  • Migrating a single object including its
    dependenciesfor sl in SourceList.name.like('TES
    T') context.migrate(sl, 'VESUVIO')

6
Deleting data
  • Deleting everything in MyDB awe dbdeleteall.py
    AWAUSER
  • Deleting a single object
  • Requires careful checking for ALL dependent
    objects
  • Is not yet possible
  • DBAs run dbvacuum to delete files from
    dataservers that belong to deleted objects

7
Project specific source code
  • Put project source code in separate CVS
    repositories
  • awe will use code that is specific to the
    currently selected project
  • Only code that is different needs to be kept in
    project specific CVS
  • Beware of unnecessary divergence!
Write a Comment
User Comments (0)
About PowerShow.com