anchor-modeling

Join elimination not working in Oracle with sub queries

自古美人都是妖i 提交于 2021-02-07 12:16:34
问题 I am able to get join elimination to work for simple cases such as one-to-one relations, but not for slightly more complicated scenarios. Ultimately I want to try anchor modelling, but first I need to find a way around this problem. I'm using Oracle 12c Enterprise Edition Release 12.1.0.2.0. DDL for my test case: drop view product_5nf; drop table product_color cascade constraints; drop table product_price cascade constraints; drop table product cascade constraints; create table product(

Join elimination not working in Oracle with sub queries

心不动则不痛 提交于 2021-02-07 12:15:29
问题 I am able to get join elimination to work for simple cases such as one-to-one relations, but not for slightly more complicated scenarios. Ultimately I want to try anchor modelling, but first I need to find a way around this problem. I'm using Oracle 12c Enterprise Edition Release 12.1.0.2.0. DDL for my test case: drop view product_5nf; drop table product_color cascade constraints; drop table product_price cascade constraints; drop table product cascade constraints; create table product(

Join elimination not working in Oracle with sub queries

China☆狼群 提交于 2021-02-07 12:15:29
问题 I am able to get join elimination to work for simple cases such as one-to-one relations, but not for slightly more complicated scenarios. Ultimately I want to try anchor modelling, but first I need to find a way around this problem. I'm using Oracle 12c Enterprise Edition Release 12.1.0.2.0. DDL for my test case: drop view product_5nf; drop table product_color cascade constraints; drop table product_price cascade constraints; drop table product cascade constraints; create table product(

Temporal database design, with a twist (live vs draft rows)

僤鯓⒐⒋嵵緔 提交于 2019-12-17 10:29:13
问题 I'm looking into implementing object-versioning with the added twist of needing to have both live and draft objects, and could use the insights from someone experience in this, as I'm beginning to wonder if it's even possible without potentially horrific hacks. I'll break it down to posts with tags for the sake of the example, but my use-case is a bit more general (involving slowly changing dimensions - http://en.wikipedia.org/wiki/Slowly_changing_dimension). Suppose you've a posts table, a

What are the pros and cons of Anchor Modeling? [closed]

六眼飞鱼酱① 提交于 2019-12-03 11:33:35
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 8 months ago . I am currently trying to create a database where a very large percentage of the data is temporal. After reading through many techniques for doing this (most involving 6nf normalization) I ran into Anchor Modeling. The schema that I was developing strongly resembled the Anchor

Temporal database design, with a twist (live vs draft rows)

我们两清 提交于 2019-11-27 11:43:30
I'm looking into implementing object-versioning with the added twist of needing to have both live and draft objects, and could use the insights from someone experience in this, as I'm beginning to wonder if it's even possible without potentially horrific hacks. I'll break it down to posts with tags for the sake of the example, but my use-case is a bit more general (involving slowly changing dimensions - http://en.wikipedia.org/wiki/Slowly_changing_dimension ). Suppose you've a posts table, a tags table, and a post2tag table: posts ( id ) tags ( id ) post2tag ( post_id fkey posts(id), tag_id