[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openldap-technical
Subject:    Re: Most efficient way to update multivalued attributes
From:       Howard Chu <hyc () symas ! com>
Date:       2023-12-20 16:29:31
Message-ID: 49ff4846-ade9-9529-1cbc-cfe01f51e938 () symas ! com
[Download RAW message or body]

Frédéric Goudal wrote:
> Hello,
> 
> 
> I have to update records with mutlivalued attributes, and I wonder what is the best \
> (fastest, or lighter for the server) to do : 
> - either just set the value with the new list
> 
> - or calculate which values to add and which to delete and than do the add and \
> remove operations. 
> And to be a bit more precise, if we have a big number of values is one of the two  \
> way best ?

You should profile it yourself and see.

Generally, you should only change what needs to be changed, so setting the entire \
value to a new list is the worst choice.


-- 
  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic