primary-key-design

SSAS One to Many Dimensional Relationship

青春壹個敷衍的年華 提交于 2019-12-01 18:17:02
问题 Question in SSAS for y'all. I am attempting to define a One to Many relationship in an OLAP SSAS cube environment. However, i'm running into problems with defining a primary key. Example tables are below. Relationships between the first 3 tables are easily defined (TradeDate, NYMEX Trades & NYMEX Contract). However, my goal is to create a one to many relationship between NYMEX Contract and Model Contract. In other words, the data from 1 NYMEX Contract will be utilized multiple times in the

Database Design and the use of non-numeric Primary Keys

强颜欢笑 提交于 2019-11-30 11:34:34
I'm currently in the process of designing the database tables for a customer & website management application. My question is in regards to the use of primary keys as functional parts of a table (and not assigning "ID" numbers to every table just because). For example, here are four related tables from the database so far, one of which uses the traditional primary key number, the others which use unique names as the primary key: -- -- website -- CREATE TABLE IF NOT EXISTS `website` ( `name` varchar(126) NOT NULL, `client_id` int(11) NOT NULL, `date_created` timestamp NOT NULL default CURRENT

Is there a DynamoDB max partition size of 10GB for a single partition key value?

折月煮酒 提交于 2019-11-30 06:51:23
I've read lots of DynamoDB docs on designing partition keys and sort keys, but I think I must be missing something fundamental. If you have a bad partition key design, what happens when the data for a SINGLE partition key value exceeds 10GB? The 'Understand Partition Behaviour' section states: "A single partition can hold approximately 10 GB of data" How can it partition a single partition key? http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GuidelinesForTables.html#GuidelinesForTables.Partitions The docs also talk about limits with a local secondary index being limited to 10GB

Is there a DynamoDB max partition size of 10GB for a single partition key value?

大城市里の小女人 提交于 2019-11-29 07:15:33
问题 I've read lots of DynamoDB docs on designing partition keys and sort keys, but I think I must be missing something fundamental. If you have a bad partition key design, what happens when the data for a SINGLE partition key value exceeds 10GB? The 'Understand Partition Behaviour' section states: "A single partition can hold approximately 10 GB of data" How can it partition a single partition key? http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GuidelinesForTables.html

MongoDB and composite primary keys

这一生的挚爱 提交于 2019-11-28 17:45:51
I'm trying to determine the best way to deal with a composite primary key in a mongo db. The main key for interacting with the data in this system is made up of 2 uuids. The combination of uuids is guaranteed to be unique, but neither of the individual uuids is. I see a couple of ways of managing this: Use an object for the primary key that is made up of 2 values (as suggested here ) Use a standard auto-generated mongo object id as the primary key, store my key in two separate fields, and then create a composite index on those two fields Make the primary key a hash of the 2 uuids Some other