简体   繁体   English

JNDI:哪个手术昂贵? LDAP rebind()或(unbind()和bind())

[英]JNDI: Which operation is expensive? LDAP rebind() or (unbind() and bind())

Assuming that I already have an entry in LDAP and I want to change some attributes of that entry, will using rebind() JNDI call be better than to use unbind() to delete that entry and bind() to create it from scratch? 假设我已经在LDAP中拥有一个条目,并且想要更改该条目的某些属性,使用rebind()JNDI调用会比使用unbind()删除该条目和bind()从头开始创建它更好吗?

Does this depend on the Directory server? 这取决于目录服务器吗?

You shouldn't be considering either. 您也不应该考虑。 Use DirContext.modifyAttributes(). 使用DirContext.modifyAttributes().

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM