Problem with effectiveness of filters

I have at several occasions run into cases were the built in "query optimizer" don’t apply filters in the best order from a performance point of view when dealing with multiple filters joined together using AND-filters.
As a work-around to the problem I have sub classed the built-in filters adding an extra constructor that allow setting the effectiveness as a hard coded integer value that (if specified) is returned instead of the calculated value. This way I was able to force an AND filter to pick the filter I know (from application knowledge) is most likely the most efficient first.
Would it be possible to get this kind of constructor added to the standard filter classes?
I would also like to know how a few things about how indexes are used by Coherence:
1.     How does the various built in filters calculate there effectiveness? Do coherence for instance keep some statistics about how many unique values an index contain or how does it decide what index that is more effective than another?
2.     Can Coherence use more than one index at the same time (i.e. merge indexes)? From my experience it seems like only one index is used fully, other indexes are only used to avoid de-serialization when performing a linear search of the hits from the first index. As far as I know only the most advanced RDBM are able to use more than one index (instead of only performing linear search from the result of one index) so I am not really surprised if Coherence do the same...
3.     Does making an index sorted in any way improve the performance if the index is used as the second or third index applied in a query (one could envision that some sort of binary search could be used instead of linear search of the hits from the first index used if a sorted index is available)?
/Magnus

MagnusE wrote:
I have at several occasions run into cases were the built in "query optimizer" don’t apply filters in the best order from a performance point of view when dealing with multiple filters joined together using AND-filters.
As a work-around to the problem I have sub classed the built-in filters adding an extra constructor that allow setting the effectiveness as a hard coded integer value that (if specified) is returned instead of the calculated value. This way I was able to force an AND filter to pick the filter I know (from application knowledge) is most likely the most efficient first.
Would it be possible to get this kind of constructor added to the standard filter classes?
You can simply create a wrapper filter which implements IndexAwareFilter and wraps another IndexAwareFilter. The calculateEffectiveness should be implemented as you want it, and you can delegate applyIndex() and evaluateEntry() to the wrapped filter.
MagnusE wrote:
I would also like to know how a few things about how indexes are used by Coherence:
1.     How does the various built in filters calculate there effectiveness?I believe they return the number of reverse index accesses as effectiveness if the index exists, and maybe the size of the candidate set if it does not exist.
MagnusE wrote:
Do coherence for instance keep some statistics about how many unique values an index contain or how does it decide what index that is more effective than another?Since the reverse index is just a map between extracted values and a collection of keys, practically this information is available from MapIndex.getIndexContents().size(), if I correctly understand your question, where you can get the MapIndex for an extractor with mapIndexes.get(extractor).
MagnusE wrote:
2.     Can Coherence use more than one index at the same time (i.e. merge indexes)? From my experience it seems like only one index is used fully, other indexes are only used to avoid de-serialization when performing a linear search of the hits from the first index. As far as I know only the most advanced RDBM are able to use more than one index (instead of only performing linear search from the result of one index) so I am not really surprised if Coherence do the same...Yes, any number of indexes can be used, but the stock filters use only a single index (as you can specify a single extractor to the filter). Of course if you form a logical expression between two filters using different extractors, indexes to both extractors will be used if they exist. The applyIndex() and calculateEffectiveness() methods receive all indexes in the mapIndexes parameter, so your custom index-aware filter can use any number of existing indexes at the same time.
MagnusE wrote:
3.     Does making an index sorted in any way improve the performance if the index is used as the second or third index applied in a query (one could envision that some sort of binary search could be used instead of linear search of the hits from the first index used if a sorted index is available)?If you need range queries on the extracted value, sorted index can help a great deal as you don't have to iterate all the keys in the reverse index. This is independent of what other filters you use in your logical expression, the evaluation of the subexpression on the sorted index will still be more efficient than if the index was unsorted.
Best regards,
Robert

Similar Messages

  • TileList problem with effects - 'RangeError: Index '8′ specified is out of bounds.' error.

    Flex 3.0 beta TileList problem with effects
    I have a problem with deleting item from a Flex 3.0 beta
    TileList component. While a delete item effect is playing and I
    delete another item (while the first effect is still playing) , I
    get an ‘RangeError: Index ‘8′ specified is out of
    bounds.’ error. How do you delay processing until the effects
    are done? or is there another solution? do I use a callLater()? or
    remove the eventListener and wait until the effect finishes?
    To see the problem, hit the down error twice quickly.
    To see the application ->
    http://designwithflex.com/pics/fasterror.swf
    Here is Thumbnail.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="100" height="100">
    <mx:Label text="{data.name}" />
    <mx:Label text="{data.age}" />
    </mx:VBox>
    and here is main.mxml:

    luvgelato,
    Can you please file a bug at
    http://bugs.adobe.com/flex/
    and attach all your MXML code.
    Thanks,
    Peter

  • Problem with middleware adapter filters

    Hi,
    I need some help with R3AC1 filter configuration. I have my CRM 4.0 working fine with a previous initial download executed for CUSTOMER_MAIN business object (between others).
    The problem is that now I have to download the related contact persons in ranges and I don't know how configure the filters to avoid deltas and the contact persons initial download at the same time.
    I think in requests (R3AR2) but I have the same problem with filters.
    Actually I have a filter in CUSTOMER_MAIN (and CUSTOMER_REL) object:
    KNA1 LAND1 EQ ES Inclusive
    If I want to download the contact persons related to customers 8000 to 9000, what's the filter configuration and in which object have I to do? It's very important that deltas continue downloading from my back-end because the system is productive.
    I need urgent help. Could anyone help me please?
    Best Regards
    Javier

    Have a look at transaction SMW3FDCUST, the activation is done there when checking the 'active' checkbox. For the download everything of BUPA_MAIN and BUPA_REL should be deassigned (as it usually is after an installation).
    The transaction is also found in customizing under CRM->CRM Middleware->Mobile scenarios->Mapping (or similar) with the approproate help text there.
    @Paul:What error do you get? Since sBDocs are not validated it should be only a technical error. Are you sure it is msa related (which then should be an error in the BDoc CAPGEN_OBJ_WRITE or CONGEN_OBJ_WRITE) or an error in the CDB adaptor framework (BDoc BUPA_MAIN or BUPA_REL). If the latter, it helps to regenerate all BDocs and related services in the generation workbench GNRWB for these BDocs.
    Regards, Kai

  • Problem with in-memory filtering: JBO-25016: View object is read only

    Hello,
    I have problem with implementation of Steve's Muench example #71 - Dropdown Lists in Table with Different Choices per Row.
    Source for the list is a read only view object.
    Invoking viewObject.findByViewCriteria throwing:
    javax.faces.el.EvaluationException: oracle.jbo.ReadOnlyViewObjectException: JBO-25016: View object ... is read only.
    What's wrong?
    Rado
    Error stack:
    Caused by: oracle.jbo.ReadOnlyViewObjectException: JBO-25016: View object ... is read only.
         at oracle.jbo.server.ViewDefImpl.newInstance(ViewDefImpl.java:991)
         at oracle.jbo.server.ViewObjectImpl.createInstance(ViewObjectImpl.java:2784)
         at oracle.jbo.server.QueryCollection.createRowWithEntities(QueryCollection.java:1271)
         at oracle.jbo.server.ViewRowSetImpl.createRowWithEntities(ViewRowSetImpl.java:1869)
         at oracle.jbo.server.ViewRowSetImpl.makeRowCopy(ViewRowSetImpl.java:1546)
         at oracle.jbo.server.ViewRowSetImpl.insertRowAtInternal(ViewRowSetImpl.java:1667)
         at oracle.jbo.server.ViewRowSetImpl.findByViewCriteria(ViewRowSetImpl.java:4126)
         at oracle.jbo.server.ViewObjectImpl.findByViewCriteria(ViewObjectImpl.java:7033)
    My code:
    public RowIterator selectDetails(String code) {
    ViewObject vo = getVO();
    if (!vo.isExecuted()) {
    vo.setQueryMode(ViewObject.QUERY_MODE_SCAN_DATABASE_TABLES);
    vo.executeQuery();
    vo.last();
    vo.setQueryMode(ViewObject.QUERY_MODE_SCAN_VIEW_ROWS);
    ViewCriteria vc = vo.createViewCriteria();
    ViewCriteriaRow vcr = vc.createViewCriteriaRow();
    vcr.setAttribute("Code", "='"+code+"'");
    vc.add(vcr);
    vc.setCriteriaMode(ViewCriteria.CRITERIA_MODE_CACHE);
    return vo.findByViewCriteria(vc,-1,ViewObject.QUERY_MODE_SCAN_VIEW_ROWS);
    }

    check attribute settings of your VO...
    the attribute for wich you set view criteria must be set to queryable and updatable - always

  • Problems with Photoshop - loading filters and brushes

    I'm having problems with my plug ins in Photoshop, which also includes brush sets.
    There are all present and correct in the usual area you save them with in the application folders.
    But when I want to use them in Photoshop either they don't show, or I get an error message saying I don't have the privileges to load them.
    If you can help in any way, it would be great as I am at a loss on how I can get them to work. These are fairly critical to completing certain work (graphics for distressed T Shirts)
    and would like to get them up and working before a project flies in and I can't use them.
    I was able to add a few plug ins by changing the permissions on the files. But this has not solved the problem for all & I am still unable to get "MACHINE WASH DELUXE" to work.
    Any help or suggestions would be useful,
    Thanks
    Stones

    Sorry, the brushsets appear to be fine but it is the plugins we still have issues with.  8BF. files, they are stored under photoshop CS4 in applications, this plug in were trying to get work "MACHINE WASH DELUXE" worked on this Mac & Photoshop version previously, but on a different user account (Now a domain user, used to be a administrator that connects into the domain) Interestingly though non of the plugins work for the scanner etc, although they are in the same location as they would of been for the previous user. Not much done in trouble shooting the issue, once the brushes started to appear because we corrected the permissions, we were stumped on what move to take next.
    Thanks for you assistance
    Stones

  • Problem with effect in fcpx 10.0.9

    Hi,
    almost all the effect don't work.
    When I go on the effect icon with the mouse, nothing append and when i apply the effect on a sequence, it is the same, nothing append.
    When i increase the amount of the effect, the screen become black (like as i decrease the opacity).
    I have uninstall fcpx yesterday (following the instruction of apple) and reinstall but the problem stays.
    my configuration:
    imac 2013 with OSX 10.8.4
    fcpx 10.0.9
    tks for your help
    L.

  • Final Cut Pro X problems with effects and grading

    I have just finishied cutting my first project in FCPX and I must say I'm amazed over how fun it is to work with it.
    However, I have some problems that I think is a bug or something related to my hardware, would like some input on this.
    My machine is an early 2008 MacPro that has been "slightly" re-modified"
    I'm running 10.7.5 from a 512GB SSD and all my material is on an internal RAID with 4 brand-new Seagate 3TB Barracudas. My graphicsboard is taken from a 2009 MacPro and is an ATI Radeon HD 4870 512MB.
    I'm running FCPX version 10.0.8
    The material I've edited is both 1080P/25fr and 720P/50fr
    One thing that has been heavy on my machine is the fact that I have cut parts of it in Multi-clip- I have up to 10 angels running at once. Yeah, I guess that could cause a crash but I don't see why that should account for my problems as written below.
    I can't really say that I have noticed anything that indicates that my machine is to slow or old.
    So, the problem then...
    I have done a lot of grading in several levels and I've also added a few effects. On different occations the grading has disappeared and effects have been reset. Also I had a situation where a certain effect looked different when I added it a second time on the same clip.
    I put a vignette over the whole project and when I restarted the program the following day, it had reset to become a black oval.
    On top of this the program has been shutting down on ocasion, although that hasn't been very frequent.
    Anyone have any thoughs on this? Is it just a question of installing Mountain Lion?
    /Gunnar

    I have proxy media for all of it. it's only the software that shuts down luckily
    One things that confuses me is that I just took the foilders to an exrternal drive and opened on my laptop and it seams to work fine. Except for the fact that the machine is to slow it shows the grading and the effects correctly.
    Maybe I should throiugh out prefs files or simply reinstall the whole thing.
    I might also mention that I'm running FCP7 on the same machine.
    I used the Apple Knowledge file that said to start the old Motion before starting FCPX for the first time.
    I do think you have a point in that the multicam clips could be the issue, gonna se if I can solve that somehow.
    Is there a way to make them "render" or convert into regular clips so the timeline doesn't read from the Multiclip once I've edited?

  • Problems with IQueryEntry, search filtering by classifications URGENT!!!!

    Hi everyone!
    I'm developing an application that search in KM, using KM indexmanagement API's for searching with TREX. Everything is work fine, even if I search with custom properties in the documents. My problem is when I try to search filtering with taxonomies and classifications, my query doesn't work, somebody know how is the structure of the IQueryEntryList, I know there is the way to filter by properties:
    IQueryEntry queryEntry   = federatedSearch.getNewQueryEntry();
         // custom property
    IPropertyName propThemName = new PropertyName(NAMESPACE, THEME);
    queryEntry.setPropertyName(propThemName);
    queryEntry.setTermAction((byte)4);
    queryEntry.setRowType(IQueryEntry.ROW_TYPE_ATTRIBUTE);
    queryEntry.setValue(getSelectedTheme()+"*");
    queryEntry.setPropertyOperator(IQueryEntry.PROPERTY_OPERATOR_EQUAL);
    queryEntry.setTermWeight(1.0F);     
    How can I do it to filter by the documents classifications ????
    any help is welcome
    Thanks!
    Leslie
    Message was edited by: Leslie Calderon

    You might start a search with your query:
    // get a search object
    IIndexService indexService = (IIndexService)ResourceFactory.getInstance().getServiceFactory()
          .getService(IServiceTypesConst.INDEX_SERVICE);
    IFederatedSearch  federatedSearch = (IFederatedSearch) indexService.getObjectInstance(
          IWcmIndexConst.FEDERATED_SEARCH_INSTANCE); 
    // use here the most adequate method for your application
    ISearchSession session = federatedSearch.searchWithSession(queryEntryList, indexes, resourceContext, sortProperty);
    // fetch the result documents
    session.getSearchResults(int from,int to);

  • Having problems with effects and having to unlock panels to get them to work?

    I am having problems getting panels to work... the scrolling function is locked.... but when I undock the panel so it floats freely the scrolling function comes back--this happens with the effects and project panels (prbably others as well).... then sometimes they will stop working and I have to redock the panel to get it to work!   This is a real problem at the moment. When I put a video effect on a clip on the timeline the down arrow will not function... so I can open up the effect and make the settings I want. I have a .3pg file from a camera phone that needs to be rotated! 
    I am running CS4 with Matrox card.  By next week I will be upgrading to CS5... but my computer needs to upgraded...will be doing this next Tuesday.
    My comuter properties are as follows Intel Core 2 Quad CPU  Q6600 @ 2.4GHz 2.39GHz, 8 GB RAM, 64-bit operating system
    Dave S

    Okay... so I closed Premiere and restarted it.... no the down arrows work... but there is a pregnant pause before the effects function opens or when I close it there is a pause. Not sure why1 This isn't heavy intensive stuff I am doing.
    Dave S

  • Problems with effects

    I'm getting uneven application of effects in the above video, and I'm wondering what I'm doing wrong.
    I just built my own rig so that I could handle effects well.
    I've been very impressed with warp stabilization so far.  But this is the first time I've piled a few effects on top of each other.
    This is the rig:
    Intel i7 4770k CPU @ 3.5 GHZ
    16 GB RAM
    GEFORCE GTX 760 GPU
    Asrock Z87 Extreme 4 Motherboard
    I'm using PP CC 7.
    In the above shot, I've synchronized two cameras and external sound in multi cam synchrinozation.
    I've applied auto color and auto contrast to all clips just to try to get the footage from separate cameras to look somewhat close together.  And camera 1 looks fine.  The problems are with camera 2, especially at 1:07 - 1:38 where I've applied warp stabilizer as well as the color and contrast corrections.  Camera 2 also appears at 3:27 - 3:39 and 4:05 - 4:27, and these are problematic even without the warp stabilizer added on.
    I'd appreciate any insight as to what limitations I'm bumping into.  Many thanks,
    Doug

    the order that you add the effects has influence on how they actually work .. like if you add something and then something on top of that .. it might look different than the other way around... so see if you added your effects in the same order as the one you like .. might make a difference...
    warp stabilizer basically upresez your video about 20% ( it crops your original and gives you back 80% of it ) sooo, that might be affecting how stuff looks too..
    I sorry but didnt look at your sample, cause I dont think I'd be able to figure out whats up from that .. looks nice though. the still image at head of video of those guys playing.. good luck !

  • Problems with effects being lost between motion and final cut?

    Hi I have an older version of motion, I am editing a video for my course and I have made some motion graphics with some blurs and fades etc (just this kids of effect, nothing else), when they are imported into final cut they disapear all i have is static text or graphics that crawl across the screen...
    Is this a bug?
    If I let software update do its job would these problems go away.
    Just so you know Final cut 5.1.4 and Motion 2.0.1
    thanks in advance if anyone can help.
    Matt

    Great fix....I started a compression to NTSC and it should be done in 3 hours, I will then boot up FCP, chose a 1 minute clip...follow your directions to the T. and compare the results....I did have this solved when I used NTSC 4:3 before; however, when I chose the menu with the mpeg2 codec, I thought that it would be faster....

  • Problem with using graduated filters

    I have used a graduated filter in a photo and it has darkened some rock that I would like to be lighter, how do I go about doing this?

    Your best bet is to have a play with the Burn tool (the one that looks like a pin).
    Example using the image you suggested:
    Original...
    After using the Burn Tool...
    This was quickly created but with more time spent on it, you should get the idea.
    Working with Dodge and Burn | Learn Photoshop CS6 | Adobe TV
    I hope you achieve the effect you want.

  • Problems with effects in PSE 10 (was from cappy pappy)

    I have an IMAC and use PSE 10 for my photoshop.  I have several Florabella add ons that I use and was trying to add some new ones last night.  So I went through the usual steps but when I went from photo creations to photo effect there was no photo effect screen.  It goes straight from the screen with photo creations to the list panel.  Maybe I accidently deleted something. Can anyone know how to fix this?
    Message was edited by: cappy pappy

    Hello and thax for responding.
    No, that was one of the first things we tried.
    My helpful guy in the store went into Terminal and tried to figure out why all the files were tied to Administrator and needed Root password to move or delete.
    Even the folder that he created via Terminal (he added a folder just to see what happended) got the + mark after it and was there by not able to move or add files into, without admin password.
    I also used the 10.6 startup DVD to go in and try to reset the ACL for my internal SSD drive, but that did not seem to help either.
    There is something about these files and disk that is not giving my Macbook permissions to change the info.
    Can also maybe be good to know that before the disk crashed, I managed to use time maschine to back it up. I hooked up the disk to my computer, added another backup disk and backed up my Internal MacBook drive together with the (about to) crashing disk. Then I copied the info from this time machine disk on to the New Drive.
    What I believe I need is to re-write the permissions on the disk so that not only admin are allowed to change the info but I have no idea how to do that.
    Hope this gives you a little more of a clue what´s is going on and that you have an idea how to solve it.
    Thanx

  • Problem with Adding Audio Filters to .m4a Music Files in FCP X

    I have added several effects to a song in FCPX, however when I go to add the "muffled" filter it creates problems. The song cuts in and out during playback.
    Trey

    Bump.

  • Problems with effects ans resolution

    Hello,
    I try to make my personal site but I have some problems I can't find
    First, I want to make a transition, here's my code :
    <code>
    <mx:states>
         <mx:State name="AgdParcours">
              <mx:SetProperty target="{BoxParcours}" name="height" value="317"/>
              <mx:SetProperty target="{HParcours}" name="height" value="317"/>
              <mx:SetProperty target="{HRealisations}" name="y" value="168"/>
              <mx:SetProperty target="{BoxRealisations}" name="y" value="168"/>
              <mx:SetProperty target="{VCV}" name="y" value="250"/>
              <mx:SetProperty target="{BoxCV}" name="y" value="250"/>
              <mx:SetProperty target="{VLoisirs}" name="y" value="250"/>
              <mx:SetProperty target="{BoxLoisirs}" name="y" value="250"/>
              <mx:SetProperty target="{linkButtonParcours}" name="label" value="RŽduire"/>
              <mx:SetEventHandler target="{linkButtonParcours}" name="click" handler="currentState=''"/>
         </mx:State>
    </mx:states>
    <mx:transitions>
         <mx:Transition fromState="*" toState="*">
              <mx:Parallel targets="{[BoxParcours, HParcours, HRealisations, BoxRealisations, VCV, BoxCV, VLoisirs, BoxLoisirs, VUnivers,                               BoxUnivers, VContacts, BoxContacts]}">
                   <mx:Move duration="10000"/>
                   <mx:Resize duration="10000"/>
              </mx:Parallel>
         </mx:Transition>
    </mx:transitions>
    </code>                                                                               
    Actually, the effect looks good but there's a bug I can't explain... Here's the result  when I click on the button in the Parcours Box in the bottom right :
    There's a transition but it looks bad and after the transition it looks like this :
    Well the transition looks good here. But do you know why is there this problem apparently from the box
    Secondly, as you can see in the second picture, there's a problem of resolution. Here's my code of my Canvas :
    <code>
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="1000" height="1314">
    </code>
    And I can put any numbers in Width and height, it's the same result. Do you know why ?
    Thank you

    What do you mean by auto-layout ?
    Well, Indead I use :
    <code>
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="1000" height="1314"
    creationComplete="parcoursData.send()" >
    </code>
    What I have to put instead of this Canvas ?

Maybe you are looking for