Click here to Skip to main content
15,890,123 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: Information Relation Modeling Pin
Gerry Schmitz4-Mar-15 23:27
mveGerry Schmitz4-Mar-15 23:27 
GeneralRe: Information Relation Modeling Pin
Daniel Lieberwirth (BrainInBlack)5-Mar-15 2:28
professionalDaniel Lieberwirth (BrainInBlack)5-Mar-15 2:28 
NewsRe: Information Relation Modeling Pin
Daniel Lieberwirth (BrainInBlack)7-Mar-15 4:34
professionalDaniel Lieberwirth (BrainInBlack)7-Mar-15 4:34 
QuestionPrimaryKey-Generation-Strategy in n-Tier Pin
manchanx25-Feb-15 7:21
professionalmanchanx25-Feb-15 7:21 
AnswerRe: PrimaryKey-Generation-Strategy in n-Tier Pin
Wendelius25-Feb-15 7:57
mentorWendelius25-Feb-15 7:57 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
manchanx25-Feb-15 21:24
professionalmanchanx25-Feb-15 21:24 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
jschell26-Feb-15 9:45
jschell26-Feb-15 9:45 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
manchanx26-Feb-15 20:20
professionalmanchanx26-Feb-15 20:20 
Hi jschell, thank you for your response!
jschell wrote:
I certainly wouldn't want to create a DAL and just assume that the client is going to send thousands of valid entries to me. That violates the primary purpose of constraints on a database in that it protects from programmer errors not user errors.
The entities are fully validated before they're sent to the DAL.

jschell wrote:
You will still need to transport those thousands of entities to the back end. If you do it one at a time AND that is problem then your solution doesn't address that at all.
No, they're sent in a batch/block.

jschell wrote:
If you are going to send them as a block then there would in fact be FEWER calls if you let the DAL handle the ids, since your DAL should be capable of recognizing dependencies (if nothing else pseudo ids in the block accomplish that.)
You mean there would be fewer calls because the client wouldn't have to request new keys from the DAL/DB before creating new entities? But the client can request more than one new key at once - if it's clear how many new entities are to be created beforehand, it's just one request, if it's not clear beforehand, it would still be considerably less than one request per key because it can just request increasingly more if it runs out of new keys.

jschell wrote:
However thousands of calls, unless you intend to that every second, isn't a problem on any effective modern server as long as it is infrequent (of course modern servers can handle that many calls per second but doing that just to avoid batch handling would be silly.)
The application will run in a variety of environments, many of which won't have a very performant server or network. So I want to design it in a way that it puts the least stress on either.
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
jschell27-Feb-15 10:19
jschell27-Feb-15 10:19 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
manchanx27-Feb-15 20:00
professionalmanchanx27-Feb-15 20:00 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
jschell4-Mar-15 9:00
jschell4-Mar-15 9:00 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
manchanx5-Mar-15 3:13
professionalmanchanx5-Mar-15 3:13 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
jschell6-Mar-15 10:52
jschell6-Mar-15 10:52 
AnswerRe: PrimaryKey-Generation-Strategy in n-Tier Pin
Mycroft Holmes25-Feb-15 13:21
professionalMycroft Holmes25-Feb-15 13:21 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
manchanx25-Feb-15 21:25
professionalmanchanx25-Feb-15 21:25 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
Mycroft Holmes25-Feb-15 21:49
professionalMycroft Holmes25-Feb-15 21:49 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
manchanx25-Feb-15 22:18
professionalmanchanx25-Feb-15 22:18 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
Pete O'Hanlon25-Feb-15 23:07
mvePete O'Hanlon25-Feb-15 23:07 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
manchanx26-Feb-15 0:06
professionalmanchanx26-Feb-15 0:06 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
Pete O'Hanlon26-Feb-15 0:17
mvePete O'Hanlon26-Feb-15 0:17 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
manchanx26-Feb-15 1:04
professionalmanchanx26-Feb-15 1:04 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
Pete O'Hanlon26-Feb-15 1:10
mvePete O'Hanlon26-Feb-15 1:10 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
manchanx26-Feb-15 1:23
professionalmanchanx26-Feb-15 1:23 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
Pete O'Hanlon26-Feb-15 2:06
mvePete O'Hanlon26-Feb-15 2:06 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
manchanx26-Feb-15 2:32
professionalmanchanx26-Feb-15 2:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.