小编Chr*_*rno的帖子

Oracle 星型模式中约 20 亿行事实表。可取?

让我开始:我不是 DBA;我是后端开发人员。

有人建议,对于报告模式,我实现了一个星型模式,其中事实表在被归档之前可以有大约 2B 行。每天约 100 万行将添加到所述表中。报告中的信息不能超过 15 分钟过时,页面加载时间必须< 7s

要提供的报告将是一种“摘要和钻取”,其中在选择所选摘要部分时,将在另一个部分中显示构成的摘要的行的子集: 在此处输入图片说明

我倾向于转移到像 Cassandra 这样的 NoSQL 存储,因为我真的很关心一个事实表(可能还有属性表)延伸到 20 亿行。希望这里的某人可以阐明为此使用星型模式,以及我对 Oracle(或任何 RDBMS,就此而言)处理选择和加入具有 ~2B 记录的表的能力。

谢谢

nosql oracle star-schema

1
推荐指数
1
解决办法
1582
查看次数

Postgres 删除级联上的外键删除除 1 之外的所有内容,为什么?

我正在使用 postgres v,我正在尝试让多表级联删除工作。

然而,当我这样做时,1 个表/条目不会被删除,我一生都无法理解为什么。

这是我的 DDL(已提取,因此请原谅格式)。

create table public.common
(
    created_at timestamp with time zone default CURRENT_TIMESTAMP,
    updated_at timestamp with time zone default CURRENT_TIMESTAMP
);


create table public.installations
(
    id  text not null constraint installations_pkey primary key,
    client_key text,
    data       jsonb
) inherits (public.common);


create table public.platforms
(
    id      text not null constraint platforms_pkey primary key,
    jpd_url text,
    jpd_key text
) inherits (public.common);


create table public.webhooks
(
    id          serial not null constraint webhooks_pkey primary key,
    team_id     text,
    salt        text …
Run Code Online (Sandbox Code Playgroud)

postgresql foreign-key cascade

1
推荐指数
1
解决办法
1454
查看次数

标签 统计

cascade ×1

foreign-key ×1

nosql ×1

oracle ×1

postgresql ×1

star-schema ×1