Search for a Criteria in cache

My task is to maintain an aggregation of many endpoint-contributions in cache, but the challenge is to subtract the value for devices that stop communication.
There are 2 classes in the model:
class Group
string Key { get; set; }
long Total { get; set; }
class Machine
string Key { get; set; }
int Contribution { get; set; }
We have a Simple Web.Api, where the endpoints post a "contribution".
The controller invokes to the group cache "Increment" and also saves in cache the machine last contribution with a TimeToLive = 30 seconds
The goal was to register a notification for RemoveItem and when the object duration expires, subtract the value to the Group totalizer.
But there are 2 problems:
The notifications only invoke the callback every 5 minutes (can't go faster no matter what I use for TTL or the pollInterval on the cache client)
The callback returns the "keys" not the objects, therefore I know what object was removed but I don't know the contribution.
Q1) MSFT experts, could you assert if registering a callback can trigger as fast as 30 seconds?
Q2) Can Anyone suggest how to bring from cache "only the expired" records? In other words can I write a filter to query cache based on a particular attribute:
Next a hypothetical example where I am using a TSQL query, but it can be LINQ, or anything to filter
var machines = _cache.Get<Machine>("Select * where DateDiff(LastUpdate, Now) > 30_SEC");

Hello,
Thanks for posting!
Base on my experience, you could set the "pollInterval" or "ttlvalue" value in your cache node. By default, polling interval is every 300 seconds. So you may need to wait 5 minutes. I recommend you could refer to this page(http://msdn.microsoft.com/en-us/library/windowsazure/dn386128.aspx
) about Notification part . And you could refer to how to configure its value, please see this page (
http://msdn.microsoft.com/en-us/library/windowsazure/hh916611.aspx ).
Please try it.
Regards,
Will
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Creating new selection criteria when searching for PR

    Hi,
    Need help. i want to add selection criteria when searching for a Purchase Requisition (PR).
    Currently, when u go to ME52N/ME53N, and you click on 'Other Purchase Request' then you click on F4 the following option are only available when searching for some criteria of PR.
    Purchase Requisition per Asset
    Purchase Requisition per Requirement Tracking Number
    Purchase Requisition per Services
    Purchase Requisition per Purchasing Group
    Purchase Requisition per Order
    Purchase Requisition per Cost Center
    Purchase Requisition per Material
    Purchase Requisition per Network
    Purchase Requisition per Project
    Purchase Requisition per Sales Document
    my intention to add option perhaps like :
    Purchase Requisition per Requestor (the one who created the PR)
    Purchase Requition per Short Text
    How can i achieve this? Thanks in advance.
    She

    Hi ,
    Goto OS52. Press F4.
    Enter thedevelopment class as ME.
    Select MBAN, then Enter .
    Click on Included Search Helps.
    You need add your search.
    Explain your requirement to ABAP team . They will help u in updating the search help.
    Regards
    Ramesh Ch

  • PDF search for term with space yields term with hyphen

    Hi,
    I've encountered what seems to be an unpleasant problem in PDF searches, and am wondering whether it's known or has a solution.
    In words, the problem is that when I perform a PDF search for a term with a space I get results for the term with a hyphen substituted for the space.
    Example: If I open this PDF (technical document from Freescale Semiconductor), and search for the term
    D cache
    I expect to find occurrences of the term "D cache", space and all. The term is in fact not in the PDF -- but the PDF search reports several instances found. Trouble is, the term it finds is
    D-cache
    This is unexpected, because a space is not the same as a hyphen. And this causes me problems, because I can't search for the space-separated term without hitting "false positives".
    I've tried this on Acrobat 9 Professional, Reader 9, and Acrobat 10 Professional, on Windows XP and Windows 7, using both quick search and advanced search with all possible permutations of options. The result is nonetheless the same.
    If you know of a solution to this problem, I would appreciate it if you shared it. Thank you!

    ... It looks like the hyperlink to the document did not post properly; the link is:
    http://cache.freescale.com/files/32bit/doc/prod_brief/MPC5676RPB.pdf?fsrch=1&sr=1

  • Better search for emails

    Is there a way to search for multiple criteria in mail using spotlight or even the mail program.
    I want to search for things like
    From AND TO AND part of message body

    HI,
    Mac OS X v10.5 Leopard - Mac Mail
    Try here: Mac Mail advanced searches in Leopard
    And here: http://discussions.apple.com/thread.jspa?threadID=1235553&tstart=0
    Carolyn

  • With Firefox 5.0.1, I can no longer have search terms highlighted when I search via cache. This makes searching for key concepts impossible now. Is there a plan to fix this issue?

    In the past, before Firefox 5.0.1, I would search for key terms via the cache mode; thus, the terms would be highlighted in various colors so that I could scroll down the page and find the exact terms.
    This is no longer functioning since I downloaded 5.0.1
    I use an iMac 3.06 Ghz Intel Core 2 Duo, 1o.6.8.

    The new tab page (about:newtab) wasn't introduced until a later version of Firefox (iirc, ''Firefox 10'') , which is why that pref can't be found.
    Sounds like your father picked up some Malware.
    Maybe this is what you're dealing with.
    http://www.shouldiremoveit.com/IMVU-Inc-Toolbar-34367-program.aspx
    Also, I see a number of Plugins listed to bee concerned about.
    Toolbar Plugin
    MindSpark Toolbar Platform Plugin Stub for 32-bit Windows
    WildTangent Games App V2 Presence Detector

  • Can I search for pdf and word documents at the same time in finder?

    I often want to search for more than one file type at a time - for instance pdfs and word docs in a directory, or Jpgs, GIFs, PNGs etc.
    Can I do this in the finder in one go (so I can save it as a folder I can then select when I want to)?
    I tried typing OR between the 'tokens' it creates, but then it just searches for OR - so not as intelligent as one would think?!
    Surely there must be a way to do something as simple as this?
    regards
    Rob

    Forget the whole "tokens" business (I think that is a pretty useless "improvement" to constructing Spotlight searches). Hit command-F to bring up the search window, and set your first criteria, in the example I changed it from the default Kind to Created Date, to keep the number of results manageable. Now hold down the Option key and click on the "+" at the end of the criteria line, it will change to "..." and you get a new criteria line. From the dropdown menu choose "Any" if necessary (this will give you the Boolean OR), then enter what you want in the first sub-head. To get a second sub-head OR criteria click the "+" at the end of the Any line.
    I don't generate many MS Word docs, so I just stopped in the example above after typing Microsoft, since that brought up all the MS anything I have from this year (a couple of Power Point thingies sent to me by friends).
    Francine

  • Short dump "Time limit exceeded" when searching for Business Transactions

    Hello Experts,
    We migrated from SAP CRM 5.2 to SAP CRM 7.0. After migration, our business transaction search (quotation, sales order, service order, contract etc) ends with the short dump "Time limit exceeded" in class CL_CRM_REPORT_ACC_DYNAMIC, method DATABASE_ACCESS. The select query is triggered from line 5 of this method.
    Number of Records:
    CRMD_ORDERADM_H: 5,115,675
    CRMD_ORDER_INDEX: 74,615,914
    We have done these so far, but the performance is still either poor or times out.
    1. DB team checked the ORACLE parameters and confirmed they are fine. They also checked the health of indices in table CRMD_ORDER_INDEX and indices are healthy
    2. Created additional indices on CRMD_ORDERADM_H and CRMD_ORDER_INDEX. After the creation of indices, some of the searches(without any criteria) work. But it takes more than a minute to fetch 1 or 2 records
    3. An ST05 trace confirmed that the selection on CRMD_ORDER_INDEX takes the most time. It takes about 103 seconds to fetch 2 records (max hits + 1)
    4. If we specify search parameters, say for example a date or status, then again we get a short dump with the message "Time limit exceeded".
    5. Observed that only if a matching index is available for the WHERE clause, the results are returned (albeit slowly). In the absence of an index, we get the dump.
    6. Searched for notes and there are no notes that could help us.
    Any idea what is causing this issue and what we can do to resolve this?
    Regards,
    Bala

    Hi Michael,
    Thanks. Yes we considered the note 1527039. None of the three scenarios mentioned in the note helped us. But we ran CRM_INDEX_REBUILD to check if the table CRMD_ORDER_INDEX had a problem. That did not help us either.
    The business users told us that they mostly search using the date fields or Object ID. We did not have any problem with search by Object ID. So we created additional indices to support search using the date fields.
    Regards,
    Bala

  • How can I search for files with more than one keyword?

    I´ve created some keywords, and some files in my folder are tagged with two, three or more keywords.
    Is there a way to search for files using more than one keyword on the search field?
    Thanks!

    Use the Find command (menu Edit) and in criteria at the right side is a plus sign to add another criteria and set it to your custom wishes.
    make a choice in results and you should be OK

  • Searching for a single keyword in lightroom 5

    Hi there,
    I am a newbie to lightroom 5 and I am slowly learning the power of keywords.
    My question is,
    I have 1000's of images of my daughter in my catalog I have key worded all of them. There are some images with her on her own or with me, the mum, nan, granddad etc etc. I have also key worded the photos with, for example me. So on an image the key word is annie, nick. When I go to the 'text' search in the library list I type in annie and every single image of her comes up be it with me the nan, the mum etc. My daughter has hundreds of image with different family members. How do I just get the search to pick "annie" as the keyword and not the rest of the keywords in the catalog.
    For example,
    I know I can do a search like this, annie, !nick, !mum, !granddad etc etc, but this is so time consuming. Is there a character that can tell lightroom that you only want the image of annie with no one else or nothing else.
    I am aware you can select all of the singular images of my daughter and create a collection with just her but this is also time consuming.
    Another way this would be annoying is if you had images of trees for example, some trees might be taken by a water fall, mountain, road, picnic table or just one on its own. you might have hundreds of tree image on there own and hundreds of images of trees with a feature. If you try and search for just a tree or trees with nothing else in the image your search result is going to bring up every single image with a tree in it. Not just the images of a tree.
    Hope this makes some sort of sense. I have searched all over the internet and there doesn't seem to be an option for this. Or maybe I am missing something. If I'm not missing something and this just isn't possible maybe lightroom designers could look at implementing this search criteria in future updates.
    Regards,
    Nick.

    I have tried that and i think i am more confused. Its going to take me a while to learn this stuff. I have done the ! option and have narrowed it down to the images I want and have created a collection with just the images I wanted. I think I am going to have to think ahead with the keywording in the future. I will get there, its all trial and error at the moment.
    Its only a problem at the moment as I have an external hard drive so I have just added 'ADD" all images (over 4000) to lightroom from there as I want to save all future photos I do on the external hard drive. I am reluctant to fill my new IMAC with loads of images and take up loads of space. With photos I do in the future I will be saving on the imac probably and backing up on my external hard drive. The 4000 images are from the last year or so before I got this MAC.
    When I do future photo shoots etc it will be easier to move the images to the correct folders as I will be working on a lot less images. So I believe in the future it will be more managable. Trying to key word 1000's of images at the same time has confused me a bit.
    Cheers for you inputs peeps, appreciate it.

  • Search for data within a database table

    Hi everyone :)
    I'm trying to make it so that the user can search for a record by id #. So, i made an input dialogue thing so the user can enter a record #. Basically, i want the data to appear in their textboxes based on the record # inputted by the user. My attempt is shown below, and when I run it, I get this:
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.
    Here's my code:
    public JButton getSearch()
              if (search==null)
                   search = new JButton("Search Database");
                   search.addActionListener
                        new ActionListener()
                             public void actionPerformed(ActionEvent ae)
                                  try
                                       String str_rec =
                                            JOptionPane.showInputDialog(
                                                 getFrame(),"Enter Record No");
                                       int recNo = 0;
                                       try
                                            recNo =
                                                 Integer.parseInt(str_rec);
                                       catch (NumberFormatException nfe)
                                            return;
                                       String select = "SELECT studId,studFirstName,studLastName " +
                                       "FROM Students " +
                                       "WHERE studId = '" + recNo + "' ";
                                       Statement statement = getConnector().getConnection().createStatement();
                                       ResultSet result = statement.executeQuery(select);
                                       System.out.println(recNo);
                                       getView().getId().setText(str_rec);
                                       getView().getFirstName().setText(result.getString("studFirstName"));
                                       getView().getLastName().setText(result.getString("studLastName"));
                                  catch (Exception e)
                                       e.printStackTrace();
              return search;
         }I hope I explained everything properly. If you could please help me, I'd very much appreciate it.
    Thanks in advance! :)
    - spidey

    "WHERE studId = '" + recNo + "' ";Why are you putting quote marks around a number? What type of database column is studId? Probably a numeric type (not character), right? Quotes go around string/character stuff, not numeric stuff.

  • Searching for a list of photos

    From my Aperture library of many tens of thousands of photos, I exported a few thousand low-resolution versions to my wife's computer. From there, she selected a few hundred of those files that she likes. I thought it would be relatively straightforward for me to now recreate an album of the high-res originals in my Aperture library based on her selections. It hasn't been.
    My strategy was to create a Smart Album and search for version names from the list of files she selected. I managed to create a long comma-delimited list of the filenames she selected from my Terminal. (Like this: S7302576, S7302662, etc.) The Aperture manual said that I could text search on multiple criteria by separating with a comma. However, now that I go to try it I see my strategy does not work. The search box interprets each separate version name as an "AND" search rather than an "OR" search. So of course when I search for more than one unique version name I get zero results rather than the group I want. So now I'm back to square one.
    Does anyone have a better suggestion of how I could accomplish this? Anything better than using my eyeballs to manually search thru thousands of photos to recreate her "selection"?
    ps: An extra credit question: Of course my wife had to make this project doubly difficult on me because she went ahead and changed the filenames on several of the photos in her selection, so I have no good idea whatsoever as to how I'd recreate in Aperture an album based on these, other than manually searching with my eyeballs. Any ideas here?
    Many thanks for any help!

    Okay, I searched a little deeper and found a solution to my problem (I guess I should have searched for "horribly tedious"):
    http://aperture-assistant.com/post/102
    Thank you Ian Wood!
    This worked but was much more difficult to do than it should have been. Come on Apple!
    I'm still open to suggestions on my extra credit question but have little hope ...

  • Google can't perform a picture search, and gives an error message no matter what I search for.

    This is the actual message I get when I search for images: Your search could not be completed with the requested search options. This is regardless of what I search for.

    This issue can be caused by corrupted cookies.
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove the Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"

  • Help needed in Inbox search for Custom attribute

    Hi,
    We have  a requirement where in we are having a custom attribute on Service request to store the ECC Order number.
    We have enhanced the Inbox search to retreive all the service requests havig the ECC order number. 
    Here we are encountering a problem. i just created a new crm service request and entered order number 1234. and now when i search for the same in Inbox search giving the criteria order number as 1234. I get no results found. But when i extend the max list to 2000, then i see the service request appearing in the result list. not sure about the algorithm that is designed for inbox search.
    Any pointers on how to resolve this issue would be of great help.
    Thanks,
    Udaya

    Hi,
    I do not have the time to research this completely, but I had a short look into the class you posted.
    In the GET_DYNAMIC_QUERY_RESULT there is a call to CL_CRM_QCOD_HELPER->PREPROCESS( )
    A little bit lower there are blocks marked by comments for the single searches that are handled by this class. I had a look into the campaign_serach() method. There if you scroll a little bit down (around line 123) they set all search parameters to SIGN = 'I' OPTION = 'EQ'. This is done several times below as well.
    Set a breakpoint in the proprocess() method and check which of the blocks is called and how they handle your search criteria.
    Hope it helps.
    cheers Carsten

  • How to make wild card search for a file using utl_file

    Hi Everyone,
    I want to write to a table from flat file.im using 9i release 2. can i perform filename* (wildcard) search n write to the matching files.
    Regards
    Manish

    Sorry can i write from those files which matches the search criteria i mean the wildcard search
    for e.g COVhj*

  • How can I search for email senders and/or email subject(s)?

    I'm probably not savvy enough to figure this out. When I search, e.g. for "Katie" I get to look at several messages where she is cc'd. I also receive messages from "Katie." How do I search for them? I know they are there because I just sent one to trash the other day. I suspect there are a number of them in trash. The only way I seem to be able to access them is to scroll...and that's a bummer.

    Hello.
    *You can click in the search field in the ThunderBird toolbar.
    *Type the words you are looking for such as email the email address
    *Hit enter or select an auto completion choice
    To narrow search results:
    *Click any year, month or day to show only results from that time. Click the looking glass to zoom out.
    *If you cannot see the timeline, click the timeline icon in the top right corner.
    *Hover over any filter, person, folder, tag, account or mailing list in the left pane to see where in time and on the timeline the messages matching the filter are located.
    To exclude persons, folders or other criteria from search results:
    *Click the unwanted person, tag, etc..
    *Select can't be… from the menu that comes up.
    To reduce results to a particular contact, account or other criterion:
    *Click the desired person, folder, etc..
    *Select must be… from the menu that comes up.
    To filter your search results:
    *Check From Me to see only messages sent from one of your email addresses.
    *Check To Me that include you as a recipient.
    *Check Starred to see only starred messages.
    *Check Attachments to see only messages that include attached files.
    To open any message, click its subject line in search results. To act on multiple messages or see more details, click Open as list at the top of the results list.
    I got this from [http://email.about.com/od/mozillathunderbirdtips/qt/Search_Mail_in_Mozilla_Thunderbird.htm here]. Go ahead and click that link if you need anymore help! Cheers.

Maybe you are looking for

  • HT201303 I have 2 ID's, use one, old one locked, need to use that email address

    I have 2 Apple ID's, first one was created years ago when i didn't have an iphone but wanted to use iTunes. I no longer use this and it is now locked for security reasons The second ID i created when i got my iphone, not realising i could use the fir

  • Move from one account to another?

    My wife just purchased a MacBook Pro for her home based business.  She has a personal iTunes account and would like to open a new one under her business account.  Can she transfer all her music from her personal account to her business account?

  • How do I restrict access to JSP or servlet only through SSL Port

    Hi I want to restrict the access to few jsp and servlet only through SSL port, so how can I block the acces to those jsp and servlet through normal port??? We are using weblogic 5.1. Any help on this highly appreciated. Aruna

  • JDBC to RFC synch RFC call not executing.

    Hi, I am working on the synchronous JDBC to RFC without BPM. After completing design and config when I test the complete scenario the data from databse is not getting updated in R/3. And I do not see any errors in MONI. But when compared the moni log

  • 3 audio tracks not exporting

    PPro CC.  1st 3 channels are exporting fine. The next 3 have been tweaked in Audition (but then so has the track on channel 2), The names of the tracks are quite long: eg Star Gazer_84BPM_10FULLSONG_624_01 Audio Extracted Audio Extracted.wav  They're