TAILIEUCHUNG - Managing time in relational databases- P20

Tham khảo tài liệu 'managing time in relational databases- p20', công nghệ thông tin, cơ sở dữ liệu phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 366 Chapter 15 OPTIMIZING ASSERTED VERSIONING DATABASES SELECT data FROM mytable WHERE SSN my-ssn AND eff_beg_dt my-as-of-dt AND eff_end_dt my-as-of-dt AND asr_beg_dt my-as-of-dt AND assertion end date my-as-of-dt AND circa_asr_flag IN Y N In processing this query a DB2 optimizer will first match on SSN. After that still using the index tree rather than a scan it will look aside for the effective end date under the Y value for the circa flag and then repeat the process for the N value. This uses a matchcols of three whereas without the IN clause an index scan would begin right after the SSN match. However we only recommend this for SQL where my_as_of_dt is not guaranteed to be Now . When that as-of date is Now using the EQUALS predicate circa_asr_flag Y will perform much better since the N s do not need to be analyzed. Query-enhancing indexes like these are not always needed. For the most part as we said earlier these indexes are specifically designed to improve the performance of queries that are looking for the currently asserted current versions of the objects they are interested in and in systems that require extremely high read performance. Indexes to Optimize Temporal Referential Integrity Temporal referential integrity TRI is enforced in two directions. On the insert or temporal expansion of a child managed object or on a change in the parent object designated by its temporal foreign key we must insure that the parent object is present in every clock tick in which the child object is about to be present. On the deletion or temporal contraction of a parent managed object we must RESTRICT CASCADE or SET NULL that transformation so that it does not leave any temporal orphans after the transaction is complete. In this section we will discuss the performance considerations involved in creating indexes that support TRI checks on both parent and child managed objects. Asserted Versioning s Non-Unique Primary Keys First and most obviously each parent table needs an

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.