Skip to main content

Questions tagged [unique-data]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
6 votes
4 answers

Protecting against malicious duplicate IDs in a distributed environment

Let's say we have multiple (somewhat autonomous) (micro-)services, and when entities are created, the ID (UUIDs or whatever) can be set externally. How can we ensure that an ID remains unique across ...
Philippe's user avatar
1 vote
4 answers

Is using multiple UUIDs decrease chance of collisions exponentially?

For example if you have a single UUID with a collision probability of x, if you concatenate 2 UUIDs, does the collision probability become x^2? val0 = generate_uuid() val1 = generate_uuid() final_val ...
Joan Venge's user avatar
  • 1,970
0 votes
2 answers

Ensure unicity of a 10 characters alphanumeric String

I have a requirement of developing a service that must generate each day few millions of random and unique alphanumeric String of length 10 (I can't increase this length, this is a customer ...
Rouliboy's user avatar
  • 137
2 votes
4 answers

Algorithm for permutations of a string of characters, with no duplicate orders

I've seen a lot of good questions about similar problems but not exactly what I'm looking for. Given: a non-unique set of symbols (or characters) (1, 1, 2, 3) Expected: an output similar to this (...
triplethreat78's user avatar
-1 votes
1 answer

How to maintain unique, customer facing Booking or Reservation Ids

I am facing trouble in creating a unique, customer facing Booking Id. It's a simple thing to do at backend where we can create a UUID and maintain uniqueness. But the UUID looks ugly from a Frontend ...
blogbydev's user avatar
  • 161
1 vote
3 answers

Deduplicating data during batch processing

I constantly struggling to solve data duplication problems efficiently (storing data from any source to RDBMSes). My main concern is speeding up inserts/batch processing. Scenario: I read data from ...
appl3r's user avatar
  • 149
3 votes
2 answers

Should email be unique across application users?

I am working on a medical application which will be implemented for USA patients and health providers. I want that there should be only 1 record of a user without any duplication. And I believe that ...
naXa stands with Ukraine's user avatar
0 votes
1 answer

CRM and external systems: How to associate data with contacts?

This question is about Dynamics CRM but is valid for every system that allows merging entities. Having data related to a contact in multiple external systems, how would you know which contact the ...
Jan Sommer's user avatar
-1 votes
2 answers

Identifying similar customer data [duplicate]

I have a large database of customers. There's a need to identify customers who have two or more customer IDs. This comes mostly from people at the front-desk creating new customers instead of ...
azathoth's user avatar
  • 107
3 votes
1 answer

Reproducible uniqueness

So, I have a bunch of calls that are all being generated with a UUID1 throughout the day. At the end of the call the call is processed and some metrics around that call are generated and stored in ...
Jared Mackey's user avatar
22 votes
2 answers

Is there an elegant way to check unique constraints on domain object attributes without moving business logic into service layer?

I have been adapting domain-driven design for about 8 years now and even after all these years, there is still one thing, that has been bugging me. That is checking for a unique record in data storage ...
Andy's user avatar
  • 10.4k
1657 votes
11 answers

Which hashing algorithm is best for uniqueness and speed?

Which hashing algorithm is best for uniqueness and speed? Example (good) uses include hash dictionaries. I know there are things like SHA-256 and such, but these algorithms are designed to be secure,...
Earlz's user avatar
  • 22.9k