-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deduplicate connection edges based on DataID (not just id field)
Summary: Changes ConnectionHandler to deduplicate edges based on their `node`'s *DataID* as opposed to their `id` value. This covers two cases that weren't deduplicated before: * Connections where nodes have an `id`, but the injected GetDataID function would return a different value. In the past we used `id` interchangeably with DataID for any node that had an id, but now that DataID is configurable we should use that for determining uniqueness. * Connections where nodes don't have an `id` weren't getting deduplicated. This is more problematic with streaming, where the same set of edges is replayed multiple times as new edges stream in. Differential Revision: D15559107 fbshipit-source-id: 66b37b54780b3e3409d02a7268bd541c6c5849b6
- Loading branch information
1 parent
6ba5890
commit 95720ee
Showing
2 changed files
with
108 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters