Warning: session_start(): open(/var/lib/php/sessions/sess_68j44baq9j20tok2gj907ap2b9, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
optimizedUniq - optimized version of uniq (checks for existence first without locking the DB) [1035090]

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).

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

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: 815 / 958
Referenced in: [show references]