Cache search capability

Hi,
I have the following questions on querying the cache:
1.) performance of key searches as compared to entity searches; here we use the entity attribute as the key so instead of searching the entities I am wondering if there is a benefit to search the keys.
2.) multiple attribute entity searches; it is not clear from the API if one can construct filters that look/compare multiple attributes.
Thanks,
Adrian

You can use the AndFilter, OrFilter, AnyFilter andAllFilter classes to compose
logical expressions from multiple filters and thosefilters need not use the same
attribute. The only restriction is that the filterswill always filter the same cache,
therefore you cannot have single-pass searchesspanning multiple named caches.
Depends on the volume of objects you filtering, you
might get better performance by implement your own
extractor class instead of multipe filters with
reflection invoke.
I feel that you demonize reflection a bit. Reflection in itself is not necessarily a big cost, if it is done correctly. In general, if you do not do the introspection parts all the time, instead you cache the Method object, then the overhead is not that high. Of course in a fit-all solution you cannot assume that your objects will all be in the same class, therefore you have to do additional checks to ensure that you always use the correct Method object.
However, if you get to the point of actually using reflection in a filter working on a distributed cache, that means that you are iterating over the cache one-by-one and you had to deserialize the object, and that is even more expensive than reflection.
The fastest way to filter a cache is always having indexes on the filtered-by attributes. And in this case reflection is employed only at the single time of putting the value into the backing map, but accessing the index does NOT need reflection.
So, yes, if you have to filter your entries one-by-one, then a custom filter can be faster than the reflection-based out-of-the-box filters, but at that point you already had to make a much larger performance sacrifice.
However, the drawback is that you'd need to deploy
your customized class to each node, though.Or you can use a properly written (meaning it caches the precompiled script, by script text to ensure that it is not necessary to recompile it every time you run the filter with the same script) scripting-language-based filter class (e.g. a Groovy-based one).
I don't know if there is going to be one in 3.4, but I wouldn't be surprised to see one, and anyway, even if it is not included, it is not particularly difficult to write one.
Best regards,
Robert

Similar Messages

  • Using Just the search Capability in JavaHelp

    I would like to use the search Capability of JavaHelp only. Is there a way to just use the search capability in JavaHelp and display the results of the search in a seperate window?

    Is there a way to just use the search
    capability in JavaHelp and display the results of the
    search in a seperate window?Yes, there is. In your HelpSet.hs file in your help directory, you will see several 'view' tags. As standard you get three, TOC, Index and Search. Just remove the ones you don't want (i.e. TOC and Index), and then just Search will be displayed.

  • Need help !! Adding search capability to JText component.

    We need help adding the string search capability to the JText component like how other text editors have. Does anybody know what component to use and what the easiest way to implement it is?

    Swing components are implemented using a design pattern called MVC - Model View Controller. The View is simply the visual representation of the Model, where all the good stuff is stored, namely the state of the component. (And the Controller glues everyhing together.)
    The JTextComponent uses a javax.swing.text.Document as its model. What you can do is get access to your component's model, and from that get access to the text contained in the Document. Once you have that text, the easiest thing you can do is do an indexOf() search.

  • I need SEARCH capability for my website

    OK, I've got a small site (10 pages) built with basic html
    pages in Dreamwever. I need SITE SEARCH capability, but I'm really
    not sure where to begin. I know this, having a search box with
    Google branded on it would not be cool. I need a custom look to the
    search interface. The remote ISP has PHP and MySQL. I also have
    ColdFusion, but I don't want to pay the extra fee charged by the
    Host to use it. Can someone tell me where I can get basic tutoring
    online to help me better understand the basics of dynamic sites
    Thanks.

    See if this helps:
    http://www.projectseven.com/tutorials/accessibility/zoomlearn/index.htm
    Ken Ford
    Adobe Community Expert - Dreamweaver
    Fordwebs, LLC
    http://www.fordwebs.com
    "paulkirtley" <[email protected]> wrote in
    message
    news:ftrt7j$dim$[email protected]..
    > OK, I've got a small site (10 pages) built with basic
    html pages in
    > Dreamwever.
    > I need SITE SEARCH capability, but I'm really not sure
    where to begin. I
    > know
    > this, having a search box with Google branded on it
    would not be cool. I
    > need
    > a custom look to the search interface. The remote ISP
    has PHP and MySQL. I
    > also
    > have ColdFusion, but I don't want to pay the extra fee
    charged by the Host
    > to
    > use it. Can someone tell me where I can get basic
    tutoring online to help
    > me
    > better understand the basics of dynamic sites Thanks.
    >

  • ALV column with search capability

    All,
    When you create an ALV grid with a field of type like mara-matnr you have a button automatically inserted in the cell and when you click on it, you have the standard search for materials and you can list/select all the materials you want.
    I would like to have the same for jurisdiction code but when I define the field like TTXJ-TXJCD, there is no search capability attached in the cell.
    Does anyone knows how to do this?

    John,
    I created an elementary Search Help with selection method on table 'TTXJ' .
    I applied this Search Help to a new custom domain I created and finally I assigned this domain to a field of a custom table I had.
    Unfortunately, I have no list in the ALV grid.
    Is there something else you believe I should do?
    Thanks,
    Isabelle

  • Losing search capability

    When I first purchased my iBook operating with Tiger, and using Spotlight, I was impressed that it could retrieve files no matter how old (even word files transfered from a windows machine). After eight months, however, it cannot find many files. Specifically, if I search for a song using a word in the title, the song does not show up.
    I recall that it used to be able to find songs and e-mails. Maybe my recall isn't that good, but I don't think so.
    If anyone has any thoughts on what I can do to fix the search capability, I would greatly appreciate it.
    Thanks in advance.
    Russell

    Spotlight's 'embedded string' matching rules are a bit obscure and it may be that you're bumping up against them. I understand that the rules are a bit looser and more inclusive if you search from a Finder window using the 'name contains' option -- you might try that approach and see if you get a few more hits.
    One of the Spotlight's unfortunate shortcomings is that it cannot be relied upon to find all files containing a particular string that may reside on your hard drive - partly because of these 'embedded string' rules, and partly because Spotlight deliberately (and invisibly) excludes certain folders from its index. One fairly airtight solution to this problem, for cases where it's essential to know for sure whether a particular file is on your hard drive, is to download the free search utility "EasyFind".

  • I cannot get google cache search to function in Firefox

    when I try to Google cache search for (certain color highlighted words on web pages) no color highlighted words show up.... A cache search is a great time saving convenience, and I miss mine not working. Is there anything I can do to reactivate it?
    Firefox 20.0.1
    Thank you, Jay

    I'm trying to think of a reason that the script would change the size of type on the page... Perhaps what's happening is that the style sheet isn't loading due to secure/insecure settings. Could you use the script options to turn off HTTPS, then reload the cached page?

  • How to add search capability to LOV...?

    hello...
    is it possible to add searche capability to LOV button;
    the list that it shows is too long and it is not evident to find the wanted row?
    iam using ADF swing
    thanks

    Hi,
    I did this a while ago
    http://www.oracle.com/technology/products/jdev/howtos/10g/jclientlov/customadfjclientlovpanel.html
    Frank

  • Add Application level Search Capability

    Hello All,
    Is there any APEX out of the box search capability? I want to be able to create a search box and enter a keyword like kids and it searches all of my tables and brings back the results in a report? I have found Oracle text, but wanted to know if there is any other options? I was thinking about creating a query with all of the tables in it and do it that way, but that will be very complicated and would have to upkeep it. Any suggestions will be greatly appreciated.
    Thanks,
    Mary

    I think you need an index per table. As far as your search is concerned I see the possibility to create some kind of a dynamic query. Let me see if I can make something for you.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • List Item Search Capability Is only Available in Default Style Views

    Hello,
            I am using SharePoint 2013 and I am impressed with the List Search Capability that is available when you use the Default Style view option.  What I am not impressed with is that the capability in not in all
    the other styles like shaded.  Is there any method that I can use to activate that functionality throughout all of my lists using any type of style like shaded.  For my organization it is a 508 compliance issue.
    Thank You
    PRSharePoint

    Hi,
    It is by default that view styles other than default has no inline Search box. In SharePoint 2013, if you need to customize list view style, you need to use JSlink property to change the fields' view:
    http://zimmergren.net/technical/sp-2013-using-the-spfield-jslink-property-to-change-the-way-your-field-is-rendered-in-sharepoint-2013
    http://blog.vgrem.com/2013/04/14/customize-the-rendering-of-a-list-view-in-sharepoint-2013-displaying-list-items-in-accordion/
    http://sharepoint.stackexchange.com/questions/101329/list-styling-in-sharepoint-2013
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Forum search capability

    I havent been able to utilize forum search capability for number of weeks now.

    It works for me. What error message do you get? You might want to try the members feedack forum
    Community Feedback (No Product Questions)

  • E 72 building cache ,search will be available in a...

    Hello, 
    today i buy one new Nokia E72 from Vodafone Romania and i have this problmes
    When i try to search in my contact list one no my phone say "building cache search will be available in a moment" 
    Why?
    Nokia what is doing, cannot check phone when it start to sell?
    I speak with my lawyer and i thing i suit Nokia for this. I pay money for one phone to work not to start to look over the internet
    after this problems and to resolve this.   

    I have had my e72 for about a week now and "Building cache. Search will be available in a moment." and tried deleting all contacts as well as using isync to reset the contacts and cal. NOTHING I have tried resolved the error, every time I try to search contacts I get the "Building cache. Search will be available in a moment." message. I can scroll through contacts using the optimouse but searching contacts from within contacts throws the message. 
    Interestingly, when contacts is closed and I use the phone's search function (the one appearing in active standby) it will search contacts just fine.
    There must be something within Contacts search that is messed up, if it was corruption the overall phone search probably wouldn't work.
    Also, I'm wondering if it may be an isync issue, the isync add-in from Nokia for the mac may be the issue, perhaps it's the culprit.
    I tried tweeting @nokiamessaging but they did not reply, I don't know if they are on top of the problem or may have reported it to Nokia. 
    It's frustrating, very frustrating. My old e61 never had issues like this. The e72 is giving me a headache, I've spent now over 30 hours on this contacts problem. Arggh. 
    am e72 as of yesterday, 2 dec 2009. was e61. previously 6310i, which is an amazingly well designed and tough phone with awesome battery life. i even had a banana slider, but that was way pre-matrix.

  • "Product Search" capability in "Sample Application"

    i have just started reviewing the HTML DB product and its rad capabilities.
    the "Customer Search" capability is were my interest lies at this time and i am really confused...
    as to how it works and how i could go into the "Sample Application" and modify it for a similar...
    "Product Search" capability.
    can you provide any assistance to me on this matter ?
    i had thought that it could be in the user guide somewhere...
    but i am only up to page 75 or so and getting impatient/excited.
    Thanks in advance.

    Note: raj gave me the following info:
    hey robert--
    if you look at the definition for the two pages you've asked about, 1 and 400, you'll see that page 1 just branches to page 400 after the user submits the page. while the page is being submitted, though, page 1 sets the value of G_CUSTOMER_NAME to whatever was entered for P1_SEARCH. the query region on page 400 simply includes that G_CUSTOMER_NAME predicated in its where clause. there's a simpler but similar example of this in our how-to docs...
    http://www.oracle.com/technology/products/database/htmldb/howtos/index.html
    ...specifically at...
    http://www.oracle.com/technology/products/database/htmldb/howtos/dynamic_report.html
    ...and, you can even simplify that example a little more by using sql instead of a pl/sql function returning that sql. so the sql version could look like...
    select p.category,
    p.product_name,
    i.quantity,
    i.unit_price
    from demo_product_info p,
    demo_order_items i
    where p.product_id = i.product_id
    and p.category = :p600_show or :p600_show = 'ALL'
    ...hope this helps,
    raj

  • Search capability in Module Manager

    I pulled up the Module Manager and wanted to verify that I
    had already installed the DTrace module from the Update Center.
    But it took me longer than I expected to find DTrace in the module manager -- there are
    so many different modules installed! Finally found it under "Debugging" whereas I'd
    been looking under "Sun Studio" and "Tools".
    Is there a search capability for the Module Manager that I missed? I'd like to be able
    to type in something close to "DTrace" and get a list or view of installed modules that seem like
    close matches. Or are there other ways to find a particular installed module than to flip all the
    "turners" one by one? I'm afraid that feels to me a little bit like looking under rocks!

    In SunStudio12 there's no search facility in
    the ModuleManager but you can use the context menu and
    sort by name. That collapses the hierarchy and sorts.
    In the upcoming NB6.0 based SunStudio there won't be a ModuleManager, but only a Plugin manager and it has
    search capability.

  • Search capability in LMS

    I'm publishing my UPK topics to an LMS using SCORM 1.2. The search box above the table of contents does not display when viewing the UPK in my LMS like it does when I view it in the Player.
    Is Search a Player-specific capability or is there a way to enable this for content published to an LMS using SCORM 1.2?

    In SunStudio12 there's no search facility in
    the ModuleManager but you can use the context menu and
    sort by name. That collapses the hierarchy and sorts.
    In the upcoming NB6.0 based SunStudio there won't be a ModuleManager, but only a Plugin manager and it has
    search capability.

Maybe you are looking for