From: Klimchev Konstantin <koka@atvc.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Ldap scripting: bash vs perl
Date: Wed, 26 May 2004 10:14:03 +0400
Message-ID: <20040526101403.63c4af77@phantom.intranet.atk> (raw)
In-Reply-To: <40B433E2.5050303@rmts.donpac.ru>
On Wed, 26 May 2004 10:06:26 +0400
Eugene Prokopiev <john@rmts.donpac.ru> wrote:
> Не смог удержаться и проделал то же самое на php и ruby. Вот что
> получилось (приведены все варианты):
Ну на самом деле здесь не совсем время выборки, а еще время локальной обработки, а оно заметно выше.
например, в примере (что я выставлял) замена конструкции
ldapsearch -LLL -hнекий_хост -x -wнекий_пароль -Dcn=manager,ou=mail,o=ATK-INET -bou=mail,o=ATK-INET "(&(objectclass=mailAccount)(accountStatus=blocked)(mail=ar*))" dn mail
на
ldapsearch -LLL -hнекий_хост -x -wнекий_пароль -Dcn=manager,ou=mail,o=ATK-INET -bou=mail,o=ATK-INET "(&(objectclass=mailAccount)(accountStatus=blocked))" dn mail | grep "mail: ar"
увеличивает время работы скрипта почти в 10 раз.
--
Best Regards, Konstantin Klimchev
(mailto:koka@atvc.ru jabber:koka@jabber.atvc.ru)
ATK-Internet ISP, Arkhangelsk, Russia
next prev parent reply other threads:[~2004-05-26 6:14 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-24 10:07 Eugene Prokopiev
2004-05-24 10:10 ` Alexey Morsov
2004-05-24 10:36 ` Eugene Prokopiev
2004-05-24 11:06 ` Mike Lykov
2004-05-24 11:10 ` Eugene Prokopiev
2004-05-24 10:22 ` Klimchev Konstantin
2004-05-24 10:29 ` Eugene Prokopiev
2004-05-24 10:45 ` Alexey Morsov
2004-05-24 10:59 ` Eugene Prokopiev
2004-05-24 11:22 ` Klimchev Konstantin
2004-05-24 11:32 ` Eugene Prokopiev
2004-05-25 7:43 ` Klimchev Konstantin
2004-05-25 8:21 ` Mike Lykov
2004-05-25 8:31 ` Klimchev Konstantin
2004-05-25 8:51 ` Mike Lykov
2004-05-25 8:58 ` Klimchev Konstantin
2004-05-25 10:43 ` [Comm] " Alexey Tourbin
2004-05-26 6:06 ` [Comm] " Eugene Prokopiev
2004-05-26 6:14 ` Klimchev Konstantin [this message]
2004-05-26 8:04 ` Eugene Prokopiev
2004-05-26 8:20 ` Klimchev Konstantin
2004-05-26 9:08 ` Eugene Prokopiev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040526101403.63c4af77@phantom.intranet.atk \
--to=koka@atvc.ru \
--cc=community@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git