primary-key-design Questions

3

Solved

I saw a similar post on Stack Overflow already, but wasn't quite satisfied. Let's say I offer a Web service. http://foo.com/SERVICEID SERVICEID is a unique String ID used to reference the service...
Barbed asked 11/8, 2010 at 4:31

11

Solved

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 tabl...
Salientian asked 29/5, 2009 at 10:0

5

Solved

We are creating a new database with 20+ tables, and our database supports: sequences. identity columns (generated always as identity/serial). So, the question is: should we use sequences or ide...
Fuzz asked 6/4, 2018 at 15:56

3

Solved

I have a single collection into which I am inserting documents of different types. I use the type parameter to distinguish between different datatypes in the collection. When I am inserting a docum...
Mccutchen asked 19/3, 2018 at 6:56

1

Solved

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 f...
Urushiol asked 26/10, 2016 at 21:44

4

Solved

I've been reading a lot of articles about DDD and noticed that most are using GUID as their ID when persisting to a database. They say that GUID scales well and auto incrementing ID's are a big no-...

4

Solved

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...
Disraeli asked 19/4, 2014 at 0:38

2

I understand what is primary key and unique clustered index my question is why primary key is required when we define unique clustered index. Just considering performance good database design. As ...
Scarberry asked 21/10, 2013 at 13:26

1

I have a requirement to store events generated by a user identified by userId. Each user belongs to a company which is identified by companyId. I have come up with a design for table in HBase as fo...
Aureomycin asked 12/3, 2013 at 0:25

1

Solved

I have table 1 with a primary key user_id and table 2 where user_id is a foreign key. Only 1 record per user_id can exist in table 2, and no record can exist without it. QUESTION: Can user_id in ...
1

© 2022 - 2024 — McMap. All rights reserved.