NOT operator: What kind of index to create to prevent unindexed searches ?

I see the following unindexed searches in my ODSEE (dsconf : 11.1.1.3.0 B2010.0630.2145) directory access log:
[30/Sep/2011:11:42:04 +0200] conn=133 op=1 msgId=2 - SRCH base="ou=people,ou=.... " scope=1 filter="(!(employeeType=P))" attrs="mail sn givenName"
[30/Sep/2011:11:42:28 +0200] conn=133 op=1 msgId=2 - RESULT err=0 tag=101 nentries=94312 etime=24 notes=U
I've created an equality index on the employeeType attribute with a threshold of 130 000. I know that I have 4 possible values for the
employeetype attribute, where at most 90000 entries have the same value. So, I don't understand why it's considered as an unindexed search.
What index(es) and index parameter(s) should I create to have that kind of search match an index ?

A while back Ludovic (I think) posted that there is no index for NOT. If you think about it, the usual index operation for equality, for example, has a key and value. The employeeType equality index key for "P" would have as its value a list of entryIDs that have the appropriate employeetype. So where would we get the list of entryIDs that don't have the value? Every key would need a corresponding negation key, containing the symmetric difference of ALLIDs with the original key. Computing it on the fly involves ALLIDs, which puts it right in to the unindexed category. Maintaining such a collection of indexes looks like a significant increase in processing time, I/O to the DB, and data size in the indexes. I'm guessing a bit of analysis on that may well show the cost is prohibitive. And in many cases any significant additional processing of this kind ought to be avoided. Maybe someone in ENG will chime in here with more details.
But if you already know all the other values you are looking for, can't you do a compound OR filter and get them all that way? It may still be unindexed if the candidate list grows over time to be more than your ALLIDs threshold. To be frank this query does not look like something that ought to be indexed. It grabs a pretty large number of your users. Your ALLIDS threshold already looks too high to me. If this is a reporting query of some kind, I'd recommend either parsing an LDIF backup (if you don't need realtime data) or using a utility/reporting server that you can bog down with long-running queries. If you are already using a utility server for this, you can examine whether the query really needs to be indexed at all. It may not make sense to try to index it.
As to why an operator would be available but not indexable, remember that the second major step of search processing examines each member of the candidate list and verifies a match on the filter. We routinely include filter components that we do not expect to assist in the creation of the candidate list, but we still want to be applied to the candidates during the filtering phase. For instance, consider the conventional filter (&(objectclass=person)(cn=XYZ)). In many Directories the objectclass filter component will evaluate to ALLIDs, and we want it to, because the cn component will have a much shorter list. We don't want the server to have to perform set intersection of a huge list of entryIDS (all the person objects) with the cn list. This is an example of how a too large ALLIDs threshold can hinder performance. We want the server to do the much easier intersection of ALLIDs with the short cn component list, because we know intersection of any subset of ALLIDs with ALLIDs is the subset. But we do want the server to check the candidates to make sure they really are person entries before returning them.

Similar Messages

  • What kind  of  index on limited number of distinct values in a large table

    Hi all,
    can any one help me
    what kind of index on limited number of distinct values in a large table
    Thanks,

    Hi,
    it's better to do full table scan when values are evenly distributed. Indexes are good when you want to select less than 10% of all data (it depends).
    BUT you can use index when there is another data distribution - e.g. value 'Unprocessed' 1%, 'Processed' 99% (and you have computed statistics). Generally in datawarehouse you could use bitmap index, because it is small and fast, but it's not suitable in OLTP with many data modification. Then you can use b-tree index or functional index.
    create index idx on mytable (decode('Unprocessed', 1, null));This funcional index will be small and fast too, because there won't be any null values (but you must use this clause in select statement to use index).

  • Have a late 2006 iMac with new Ram installed in late 2011 . I am currently running Mountain lion. Did/ hit something while half asleep and was asked for my recovery password didn't know it.Not sure what i did after that but wont boot just searches,

    I have a late 2006 iMac with new Ram installed in late 2011or early2012 . I am currently running lion. Did/ hit something while half asleep and was asked for my recovery password, I didn't know it & not sure what I did after that but it wont boot up just searches with a light grey whit -ish screen. Cant get it to clear. Any advice?
    Charlies Secret Angel-

    Try to boot in Safe mode, see if you are able: Hold down shift and then power on. For wireless keyboards, hold down shift after the chime.
    Safe Boot
    Resolve startup issues and perform disk maintenance with Disk

  • Navigation bar not working cannot add a new one says there is a warning but does not indicate what kind of warning

    In the space where you would add a widgit there is a warning so a new navigation bar cannot be added.  I tried uninstalling and reinstalling but that did not help.  When I pulishedd my website the navigation bar did not work.  It only linked to one page but I cannot fix the problem because of the warning. 

    Hi
    Are you creating a manual menu and while adding another menu item you are facing error ?
    Please elaborate more as what are the steps you are taking and upload screenshots of navigation bar that you are using in design mode , if site is published then share the url.
    Thanks,
    Sanjit

  • TS1292 Our code is damaged and not readable what kind of reimbursement is available.

    Hi Itunes
    We gave itunes cards as gifts last Christmas.  One of the codes was badly damaged.  The value is $25.  We would like to benefit from this value.  What is our next step?

    See this support article:
    http://support.apple.com/kb/TS1292
    If you can't get to work after perusing that page, contact the iTunes Store Support; instructions are at the bottom of that article.
    By the way, please be aware that you are not communicating with Apple when you post in these forums. The only people who will reply to your posts are your fellow users.
    Regards.
    Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Communities page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums and in the Apple Knowledge Base, before you post a question.

  • HT201363 my husband received an email from Apple stating we needed new credit card information.  We had just gotten a new credit card and couldn't remember if we updated it or not.  What kind of questions would you ask for that? It may have been fraud?

    My husband received an email from Apple stating our account was frozen and we needed to update our credit information.  We recently got a new credit card and so went ahead and updated information.  They asked about mothers maiden name and social security information.  Now we are feeling skeptical.  Are these the kinds of questions Apple would ask?  Now all my information is out there and I can't even get a hold of a human being at support to answer any questions for me as to whether they sent this or not????? Help!!!!!!!!!!!!!!!!

    That email was a phishing attempt to get your iTunes account and payment details - iTunes accounts aren't 'frozen', and iTunes don't need your social security info.
    If your husband entered his card details then he should contact the card issuer immediately and get it cancelled and replaced.
    He should also change the password on his iTunes account e.g. via the Store > View Account menu option on his computer's iTunes or via http://appleid.apple.com
    If you still have the email then you could forward it to Apple : [email protected]

  • An error occurs during the installation of itunes. It does not say what kind of error.

    It says "The installation encountered errors before itunes could be configured. Errors occured during installation. Your system has not been modified." ??????

    Hi
    You can download it from the other computer,and transfer it throw the flash storage device to this computer and install this package ,you can try it

  • Not sure what kind of upgrade I need

    I own an HP Pavillion 2511x. I'm a huge PC gamer and a couple games i play seem to be pretty laggy. Should i upgrade my RAM or my ghrapics card? And if either of these, what would be the most compatible with my computer?
    Thank you 

    Hi,
    "HP Pavillion 2511x" is just a monitor. What is your machine ? should be on the case.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • What Kind of microcontr​oller is needed for alarm system with PIR sensors

    Hi ! I'm student at Technical University Varna , 
    Bulgaria . I'm interessted to create my own alarm system with Labview,
    but I'm not sure what kind of controller i need and what kind of PIR
    sensors.                  Thank You

    This is duplicate post:
    What Kind of microcontroller is needed for alarm system with PIR sensors

  • Don't know what kind of application I should use to make this kind of proj.

    I am going to make a project and I am not sure what kind of program would work for this document I want to make. The project I would like to make is of a type like a family tree, or a reverse sports playoff grid, where you start out with a few headers that branch out laterally and are linked with lines (just like a family tree graph) to many different headers. I want to have each of these headers as hyperlinks that you can click on to read more text/data/pictures about each header. I want to be able to add and edit it after I created it without major adjustments to the whole thing. Is this a clear question? Any help would be great. Thanks.
    PowerPC G5   Mac OS X (10.4.2)  
    PowerPC G5   Mac OS X (10.4.2)  

    Donna,
    At a quick look at the omnigraffle webpage and I knew
    that was excatly the application I was looking for
    but did not know existed or where to find. Thanks a
    ton for your input!
    Also, it did not come with my prepackaged software.
    Mrl
    PowerMac G5s sold in the last 2 years or more all came with OmniGraffle.
    Apple's G5 web page
    If it's not on your G5, check the DVD that came with your G5.
    Cheers.

  • What Kind of microcontroller is needed for alarm system with PIR sensors

    Hi ! I'm student at Technical University Varna , 
    Bulgaria . I'm interessted to create my own alarm system with Labview,
    but I'm not sure what kind of controller i need and what kind of PIR
    sensors.                  Thank You

    Hi xellos,
    I'm not sure what you need, but if my feelings is right, than what you  want to do is sort of motion detector based on PIR sensor and some ucontroller. It this is what you need, than once again, such a question is rather suitable for other discussion forums, like LabVIEW Embedded.
    However, in general you can go for ARM or Blackfin when thinking about embedded platform. See following links to get more ingormation on ARM and Blackfin with LabVIEW:
    NI LabVIEW Embedded Module for ARM Microcontrollers
    NI LabVIEW Embedded Module for ADI Blackfin Processors Development Kit
    With choosing sensor, I suggest simple googling - with relativly little effort you can find many sensors. And you can pick on specification and requirements you have (just to note, National Instruments is not producing and usualy not selling sensors).
    Regards,
    Stefo

  • Firefox can't play Boost Mobile ringtones without a supposed "ActiveX" script, what kind of script do I need?

    When I go to the Boost Mobile website and try to listen to ringtones there it directs me to a website to download a type of ActiveX script/plugin for Firefox. Well, the latest version is for Firefox 1.5, which is long gone. I'm not sure what kind of script or plugin I need to play these ringtones. Can anyone help direct me in the right direction? I have the most updated version of Firefox and I am using Windows Vista.
    == I visited http://content.boostmobile.com/boostwebapp/boostdefault.do#1

    Firefox has not used ActiveX in a very long time. See: [[ActiveX]]
    You can try using this add-ons and it will use the IE you have installed on your system to execute ActiveX in that special tab:
    https://addons.mozilla.org/en-US/firefox/addon/10909
    <u>'''''Other Issues'''''</u>: ~~red:You have installed plug-ins with known security issues. You should update them immediately.~~
    <u>'''You'''</u> ~~red:<u>'''MAY'''</u>~~ <u>'''need to Update Adobe Reader for Firefox (aka Adobe PDF Plug-In For Firefox)'''</u>: your ver. N/A; current ver. 9.3.3 (important security update release 06-29-2010; see: http://www.adobe.com/support/security/bulletins/apsb10-15.html)
    ~~red:Check your version here~~: http://www.mozilla.com/en-US/plugincheck/
    See: http://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox#Installing_and_updating_Adobe_Reader
    ''<u>You may be able to update from the Adobe Reader installed on your system</u>'' instead of going to the Adobe site and downloading. Start > Program Files, find and click Adobe Reader to open, click Help, click Check for Updates.
    ''<u>If you go to the Adobe site to download the current Adobe Reader:</u>''
    -'''<u>use Firefox to download</u>''' and <u>'''SAVE to your hard drive'''</u> (save to Desktop for easy access)
    ~~red:-See the images at the bottom left of this post to see the steps to take on the Adobe site~~
    -exit Firefox (File > Exit)
    -check to see that Firefox is completely closed (''Ctrl+Alt+Del, choose Task Manager, click Processes tab, if "firefox.exe" is on the list, right-click "firefox.exe" and choose End process, close the Task Manager window'')
    -double-click on the Adobe Reader installer you just downloaded to install/update Adobe Reader
    *<u>'''NOTE: On Vista and Windows 7'''</u> you may need to run the plugin installer as Administrator by starting the installer via the right-click context menu if you do not get an UAC prompt to ask for permission to continue (i.e nothing seems to happen). See this: http://vistasupport.mvps.org/run_as_administrator.htm
    *'''<u>NOTE for IE:</u>''' Firefox and most other browsers use a Plugin. IE uses an ActiveX version. To install/update the IE ActiveX version, same instructions as above, except use IE to download the ActiveX installer.
    *Also see: http://kb.mozillazine.org/Adobe_Reader ~~red:'''''AND'''''~~ [[How do I edit options to add Adobe to the list of allowed sites]]

  • What kind of DVI?

    I have a PowerMac G5 with the Radeon 9600 Pro. The video card has one DVI output but I'm not sure what KIND of DVI it is? My monitor has a DVI-D input and the DVI cable that came with the computer doesn't fit in this input so I can only assume the 9600 Pro has either a DVI-I or DVI-A but all I can find is that it's a dual-link DVI. Anyone know which one?

    So what kind of cable came with the computer
    originally if it won't connect to the monitor? A
    DVI-I cable? If so, what is the difference between
    the DVI-I cable and the DVI-D cable?
    Are you sure the cable came with the computer? All Apple displays come with their own cables, so I didn't think Apple would provide a cable with the computer. Here are pictures of the different types of DVI connectors.
    <http://www.interfacebus.com/DesignConnector_Digital_Visual_Interface_DVIBus.html> You can't always tell the type of DVI just by looking at the connector, though. Often the connector will have pins that are not connected. For example, a single-link DVI graphics board may include the pins used for double-link DVI. This would allow the use of a dual-link DVI cable to connect a single-link display (assuming the display allow the use of the connector.

  • What kind of music file to use when you download

    I just got my Video Ipod and i do not know what kind of music file i am using to download my music. i know thereis aac, mps, wave, and all different kinds. i do not know how to change which one i am using. i assume it already is set to aac???please help

    To check and change the format iTunes will import music into, follow the first two instructions in this article. Music purchased from the iTunes music store will not be converted.
    (10299)

  • What kind of alerts we use?

    hi friends,
    what kind of alerts we create in reporting?
    Thanking u
    suneel.

    Hi Suneel,
    We can create as per the requirements.
    One is E-mail alerts for Manager levels.
    Lets example in MM module:
           Material1(10-06-2007),  Material2(01-07-2007).
    In this scenario we have to set for materials i.e Material1 is going to expire on next 4 days and Materail2 is going to expire next 25 days.
    Hope this is useful....
    Regards,
    Venkat

Maybe you are looking for

  • Why doesn't the location information in an iCal meeting show up on my iPhone, when it does show up in iCal?

    Why doesn't the location information show up on my iPhone 4S calendar when I accept an invitation to a meeting? The other information such as the date, time and invitees all show up on the iPhone, while in iCal all the information including the Locat

  • Passing file name variable to the save as dialog

    Hi: I have an event listener that checks if the user has selected the file/"save as" menu and brings up another dialog window asking for some additional information about the client and job. I would like to pass a variable from this custom dialog to

  • IPhoto won't open with new mavericks on mac!

    Hi! I just downloaded mavericks for my mac and now my iphoto won't open! Do I have to download a new version and will all my old pictures still be there? Thanks! I'm really freaking out about it!I

  • How to change language in 5700

    i need to add japanese language to my phone and it's 5700 i need your help plz [email protected] thnx

  • Mail prefs for Adobe Reader

    Created a pdf document in Adobe reader and want to send it as and attachment in Adobe reader. It wants to use the default "mail" account. I want to use my Gmail acccount. How can I change this preference so it sees my Gmail account?. Thanks