Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

4
LINES

< > BotCompany Repo | #1035090 // optimizedUniq - optimized version of uniq (checks for existence first without locking the DB)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (21750L/131K).

static <A extends Concept> A nuLike optimizedUniq(Concepts cc default db_mainConcepts(), Class<A> c, O... params) {
  try object conceptWhere(cc, c, params);
  ret uniq(cc, c, params);
}

Author comment

Began life as a copy of #1005292

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035090
Snippet name: optimizedUniq - optimized version of uniq (checks for existence first without locking the DB)
Eternal ID of this version: #1035090/1
Text MD5: 804375fef1e811eab44cd281c74282bc
Transpilation MD5: a0a7737bd92e5fd236128cd9f626712c
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-29 21:56:52
Source code size: 189 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 137 / 195
Referenced in: [show references]