Forum Replies Created

Viewing 15 posts - 1,816 through 1,830 (of 6,036 total)

  • RE: Query Performance Problem

    ScottPletcher (11/19/2015)


    if the codes are significant

    what does that mean?

    In English, please.

  • RE: Query Performance Problem

    ScottPletcher (11/19/2015)


    I'm certain they're never running an EXISTS check because they are not reusing codes,

    Have a look at the topic starter:

    SET @RedemptionCode = dbo.GenerateRandomBase32(@RedemptionSeed)

    WHILE((@RedemptionCode IS NULL) OR EXISTS(SELECT RedemptionCode FROM...

  • RE: Query Performance Problem

    ScottPletcher (11/19/2015)


    When one campaign is over all the relevant promo codes are made inactive.

    Yes, by deleting them from the current promo table, not by just flagging them. They can...

  • RE: Query Performance Problem

    ScottPletcher (11/19/2015)


    No person outside the company can possibly put it back into the current table. So how would they ever be able to reuse it? It's just not...

  • RE: Query Performance Problem

    ScottPletcher (11/19/2015)


    Try to follow this, it's simple enough even for you.

    When it's used up initially, it's removed forever from the current table, since it has no current value.

    No person outside...

  • RE: Query Performance Problem

    ScottPletcher (11/19/2015)


    Sergiy (11/19/2015)

    ScottPletcher (11/18/2015)


    Once they've been used up, you'd remove them so they can't be reused.

    How exactly you intend to prevent used codes from being reused (regenerated as new) if...

  • RE: Row number over guid

    j-1064772 (11/19/2015)


    I was more thinking of the "main" tables like Customer, Contact, Invoice. No duplication issues there.

    And yes, I agree that there is still work to be done for "reference"...

  • RE: Query Performance Problem

    ScottPletcher (11/19/2015)


    Sergiy (11/18/2015)


    ScottPletcher (11/18/2015)


    Once they've been used up, you'd remove them so they can't be reused.

    How exactly you intend to prevent used codes from being reused (regenerated as new) if...

  • RE: Row number over guid

    j-1064772 (11/18/2015)


    If two offices of an organization used the same application each maintaining its own database, then at a later time the two databases could be merged without any risk...

  • RE: Query Performance Problem

    ScottPletcher (11/18/2015)


    Once they've been used up, you'd remove them so they can't be reused.

    How exactly you intend to prevent used codes from being reused (regenerated as new) if they are...

  • RE: Query Performance Problem

    I use to top up my mobile by texting recharge codes to provider's number.

    All the numbers I ever used are still sitting in the memory of my phone.

    If the provider...

  • RE: Query Performance Problem

    ScottPletcher (11/18/2015)


    Lol. So you think Amazon.com has every gift code number they've ever issued in their current gift codes table? Unbelievable.

    Why not?

    May be not "ever issued", may be...

  • RE: Query Performance Problem

    ScottPletcher (11/18/2015)


    Of course. But that doesn't mean I have to store decades worth of obsolete numbers in my main table, now does it? If the number is not...

  • RE: Row number over guid

    sql.queries (11/18/2015)


    One other advantage of GUIDs could be when you need to join two equal tables, for example, two tables of users which were filled in different places and keep...

  • RE: Query Performance Problem

    ScottPletcher (11/18/2015)


    First, how do you know that inactive codes are routinely searched? That's almost never the case.

    Oh really?

    I cannot think of an application when it's not the case.

    When people...

Viewing 15 posts - 1,816 through 1,830 (of 6,036 total)