Relationship between Dynamic Memory Heap and Heap Data Structure

This question is not strictly related to Java, but rather to programming in general, and I tend to get better answers from this community than any where else.
Somehow, my school and industry experience have somehow not given me the opportunity to explore and understand heaps (the data structure), so I'm investigating them now, and in particular, I've been looking at applications. I know they can be used for priority queues, heap sorts, and shortest path searches. However, I would have thought that, obviously, there must be some sort of relationship between the heap data structure, and the dynamic memory heap. Otherwise, I can think of no good reason why the dynamic memory heap would be named "heap". Surprisingly, after searching the web for 90 minutes or so, I've seen vague references, but nothing conclusive (trouble seems to be that it's hard to get Google to understand that I'm using the word "heap" in two different contexts, and similarly, it would not likely understand that web authors would use the word in two different contexts).
The Java Virtual Machine Spec is silent on the subject, as "The Java virtual machine assumes no particular type of automatic storage management system, and the storage management technique may be chosen according to the implementor's system requirements."
I've seen things like:
[of dynamic memory] "All the blocks of a particular size are kept in a sorted linked list or tree (I extrapolate that sorted tree could imply heap)"
[of dynamic memory] "The free and reserved areas of memory are maintained in a data structure similar to binary trees called a heap"
[of dynamic memory] "This is not related to the heap data structure"
[of dynamic memory] "Not to be confused with the data structure known as a "heap"
[of data structure] "Not to be confused with the dynamic memory pool, often known as TheHeap"
At this point, I've come to surmise that some (but not all) memory management algorithms use heaps to track which (pages? blocks? bytes?) of memory are used, and which are not. However, the point of a heap is to store data so that the max (or min) key is at the root of the heap. But we might want to allocate memory of different sizes at different times, so it wouldn't make sense to key on the amount of available memory in a particular region of the free store.
I must assume then that there would be a different heap maintained for each size of memory block that can be allocated, and the key must have something to do with the attractiveness of the particular memory block in the heap (perhaps the lowest address, resulting, hopefully, in growing the free store space less often, leaving more space for the stack to grow, or perhaps keyed based on the fragmentation, to hopefully result in less fragmentation, and therefore more efficient use of the memory space, or perhaps based on page boundaries, keeping as much data in the same page as possible, etc).
So at this point, I have a few questions I've been unable to resolve completely:
1. Am I correct that the heap was so named because (perhaps at one point in time), a heap is/was commonly used to track the available memory in the free store?
2. If so, would it be correct that there would be a heap per standard block size?
3. Also, at what level of granularity would a heap typically be used (memory page, memory blocks, individual words (4-bytes))?
4. What would be the most likely property one would use as a key. That is, what makes the root item on the heap ideal?
5. Would a industrial strength system like the jvm use a (perhaps modified or tuned) heap for this sort of task, or would this typically be too naive for an real world solution today?
Any insight would be awesome!
Thanks,
A.

jschell wrote:
I think you are not only mixing terms but domains.
For starters the OS allocs memory. Applications, regardless of language, request memory from the OS and use it in various ways.
There are many variations of the term "heap" like the following.
[http://en.wikipedia.org/wiki/Heap_(data_structure)]
[http://en.wikipedia.org/wiki/Dynamic_memory_allocation]
A java VM will request memory from the OS (from a 'heap') and use it in its application 'heap' (C/C++) and then create the Java 'heap'. There can be variations of that along the way that can and likely will include variations of how each heap is used, potentially code that creates its own heap, and potentially other allocators which use something which is not a heap.This last part, I find a bit confusing. By "use something which is not a heap", do you mean the heap data structure, or the dynamic memory pool meaning of heap? If the former, then you would be implying that it would be common for a heap data structure to be used to manage the heap dynamic memory pool. If the latter, what would this "something which is not a heap" be? The best definition of "heap" I've found simply states that it is a pool of memory that can be dynamically allocated. If there is some other way of allocating dynamic memory, then it would suggest that the previous definition of "heap" is incomplete.
>
So to terms.
1. Am I correct that the heap was so named because (perhaps at one point in time), a heap is/was commonly used to track the available memory in the free store?Which 'heap'? The VM one? It is probably named that because the implementors of the Sun VM were familar with how C++ and Smalltalk allocated memory.Okay, but that begs the question, was the heap in C++ and/or Smalltalk so named for the above queried reason?
>
2. If so, would it be correct that there would be a heap per standard block size?Not sure what you are referring to but probably a detail of the implementation. And since there are different levels the question doesn't mean much.
However OS allocations are always by block if that helps. After that it requires making the question much, much more specific.
3. Also, at what level of granularity would a heap typically be used (memory page, memory blocks, individual words (4-bytes))?Again not specific enough. A typical standard implementation of heap could not be at the word level. And it is unlikely, but not impossible, that variations would support word size allocations.
The VM heap might use word boundaries (but not size), where the application heap certainly does (word boundary.)My understanding of it is that the application would request blocks from the OS, and then something like malloc would manage the memory within the allocated blocks. malloc (or whatever equivalent Java uses) would have to keep track of the memory it has allocated somehow, and I would think it would have to do this at the word level, since it's most commonly going to allocate memory at the word level to be references to other objects, etc.
So I guess my question here would really be, if the dynamic memory heap is so named because there has been a memory management strategy that relied upon a heap data structure (which I've found no proof, but have found some suggestive literature), then would that probably have applied at the OS Page Fault level, tracking allocated blocks, or would that have applied at the malloc level, allocating individual words as necessary?
>
4. What would be the most likely property one would use as a key. That is, what makes the root item on the heap ideal?"Key" is not a term that will apply in this discussion.
You appear to be referring to strategies for effective allocation of memory such as allocations from different regions by size comparison.
It is possible that all levels might use such an allocator. General purpose applications do not sort allocations though (as per your one reference that mentions 'key'.) Sorry, I got the term "key" from an article I read regarding heaps, that indicates that a "key" is used to sort the elements, which I guess would be a more generalized way to make a heap than assuming a natural ordering on the elements in the heap. I'm not sure if the terminology is standard.
>
5. Would a industrial strength system like the jvm use a (perhaps modified or tuned) heap for this sort of task, or would this typically be too naive for an real world solution today?Again too indefinite. The Sun VM uses a rather complicated allocator, the model for which originated after years of proceeding research certainly in Smalltalk and in Lisp as well, both commercially and academically.
I am sure the default is rules driven either explicitly or implicitly as well. So it is self tuning.
There are command line options that allow you to change how it works as well.I guess perhaps I could attempt to clarify my initial question a bit.
There is a 1:1 correspondence between the runtime stack, and a stack data structure. That is, when you call a function, it pushes a stack frame onto the runtime stack. When you return from a function, it pops a stack frame from the runtime stack. This is almost certainly the reasons the runtime stack is named as it is.
The question is, is there or has there ever been a 1:1 correspondence between some aspect of the dynamic memory heap or how it is managed, and a heap data structure? If so, it would explain the name, but I'm a bit puzzled as to how a heap data structure would be of assistance in creating or managing the dynamic memory heap. If not, on the other hand, then does anybody know where the name "heap" came from, as it applies to the dynamic memory pool?
A.

Similar Messages

  • Relationship between ERPi metadata rules and Data load rules

    I am using version 11.1.1.3 to load EBS data to ERPi and then to FDM. I have created a Metadata rule where I have assigned a ledger from the Source Accounting Entities. I have also created a Data Load rule that references the same ledger as the metadata rule. I have about 50 ledgers that I have to integrate so I have added the source adapters that reference the Data Load rule.
    My question is... What is the relation between the Meatdata rule and the Data load rule with the ledger? If you can specify only one Ledger per metadata rule, then how does FDM know to use another metadata rule with another ledger attached to it? Thanks!!!

    Aksik
    1 How freequently this activation problem occurs. If it is one time replicate the datasource and activate thetransfer structure( But in general as you know activation of transfer structure should be done automatically after transport of the object)
    2 One thing for difference of time is environmental as you know in production system so many jobs will run at the same time so obiously system performance will be slow compare to Dev System. In your case both the systems are performing equally. You said in dev system for 50000 records half an hour and in production 200000 records 2hrs so records are more in Production system and it took longer time. If it is really causing problem then you have to do some performance activities.
    Hope this helps
    Thnaks
    Sat

  • Getting Error The trust relationship between the primary domain and the trusted domain failed in SharePoint 2010

    Hi,
    SharePoint 2010 Backup has been taken from production and restored through Semantic Tool in one of the server.The wepapplication of which the backup was taken is working fine.
    But the problem is that the SharePoint is not working correctly.We cannot create any new webapplication ,cannot navigate to the ServiceApplications.aspx page it shows error.Even the Search and UserProfile Services of the existing Web Application is not working.Checking
    the SharePoint Logs I found out the below exception
    11/30/2011 12:14:53.78  WebAnalyticsService.exe (0x06D4)         0x2D24 SharePoint Foundation          Database                     
     8u1d High     Flushing connection pool 'Data Source=urasvr139;Initial Catalog=SharePoint_Config;Integrated Security=True;Enlist=False;Connect Timeout=15' 
    11/30/2011 12:14:53.78  WebAnalyticsService.exe (0x06D4)         0x2D24 SharePoint Foundation          Topology                     
     2myf Medium   Enabling the configuration filesystem and memory caches. 
    11/30/2011 12:14:53.79  WebAnalyticsService.exe (0x06D4)         0x12AC SharePoint Foundation          Database                     
     8u1d High     Flushing connection pool 'Data Source=urasvr139;Initial Catalog=SharePoint_Config;Integrated Security=True;Enlist=False;Connect Timeout=15' 
    11/30/2011 12:14:53.79  WebAnalyticsService.exe (0x06D4)         0x12AC SharePoint Foundation          Topology                     
     2myf Medium   Enabling the configuration filesystem and memory caches. 
    11/30/2011 12:14:55.54  mssearch.exe (0x0864)                    0x2B24 SharePoint Server Search       Propagation Manager          
     fo2s Medium   [3b3-c-0 An] aborting all propagation tasks and propagation-owned transactions after waiting 300 seconds (0 indexes)  [indexpropagator.cxx:1607]  d:\office\source\search\native\ytrip\tripoli\propagation\indexpropagator.cxx 
    11/30/2011 12:14:55.99  OWSTIMER.EXE (0x1DF4)                    0x1994 SharePoint Foundation          Topology                     
     75dz High     The SPPersistedObject with
    Name User Profile Service Application, Id 9577a6aa-33ec-498e-b198-56651b53bf27, Parent 13e1ef7d-40c2-4bcb-906c-a080866ca9bd failed to initialize with the following error: System.SystemException: The trust relationship between the primary domain and the trusted
    domain failed.       at System.Security.Principal.SecurityIdentifier.TranslateToNTAccounts(IdentityReferenceCollection sourceSids, Boolean& someFailed)     at System.Security.Principal.SecurityIdentifier.Translate(IdentityReferenceCollection
    sourceSids, Type targetType, Boolean forceSuccess)     at System.Security.Principal.SecurityIdentifier.Translate(Type targetType)     at Microsoft.SharePoint.Administration.SPAce`1.get_PrincipalName()    
    at Microsoft.SharePoint.Administration.SPAcl`1.Add(String princip... 
    11/30/2011 12:14:55.99* OWSTIMER.EXE (0x1DF4)                    0x1994 SharePoint Foundation          Topology                     
     75dz High     ...alName, String displayName, Byte[] securityIdentifier, T grantRightsMask, T denyRightsMask)     at Microsoft.SharePoint.Administration.SPAcl`1..ctor(String persistedAcl)    
    at Microsoft.SharePoint.Administration.SPServiceApplication.OnDeserialization()     at Microsoft.SharePoint.Administration.SPIisWebServiceApplication.OnDeserialization()     at Microsoft.SharePoint.Administration.SPPersistedObject.Initialize(ISPPersistedStoreProvider
    persistedStoreProvider, Guid id, Guid parentId, String name, SPObjectStatus status, Int64 version, XmlDocument state) 
    11/30/2011 12:14:56.00  OWSTIMER.EXE (0x1DF4)                    0x1994 SharePoint Foundation          Topology                     
     8xqx High     Exception in RefreshCache. Exception message :The trust relationship between the primary domain and the trusted domain failed.   
    11/30/2011 12:14:56.00  OWSTIMER.EXE (0x1DF4)                    0x1994 SharePoint Foundation          Timer                        
     2n2p Monitorable The following error occured while trying to initialize the timer: System.SystemException: The trust relationship between the primary domain and the trusted domain failed.       at System.Security.Principal.SecurityIdentifier.TranslateToNTAccounts(IdentityReferenceCollection
    sourceSids, Boolean& someFailed)     at System.Security.Principal.SecurityIdentifier.Translate(IdentityReferenceCollection sourceSids, Type targetType, Boolean forceSuccess)     at System.Security.Principal.SecurityIdentifier.Translate(Type
    targetType)     at Microsoft.SharePoint.Administration.SPAce`1.get_PrincipalName()     at Microsoft.SharePoint.Administration.SPAcl`1.Add(String principalName, String displayName, Byte[] securityIdentifier, T grantRightsMask,
    T denyRightsMask)     at Microsoft.SharePoint.Administrati... 
    11/30/2011 12:14:56.00* OWSTIMER.EXE (0x1DF4)                    0x1994 SharePoint Foundation          Timer                        
     2n2p Monitorable ...on.SPAcl`1..ctor(String persistedAcl)     at Microsoft.SharePoint.Administration.SPServiceApplication.OnDeserialization()     at Microsoft.SharePoint.Administration.SPIisWebServiceApplication.OnDeserialization()    
    at Microsoft.SharePoint.Administration.SPPersistedObject.Initialize(ISPPersistedStoreProvider persistedStoreProvider, Guid id, Guid parentId, String name, SPObjectStatus status, Int64 version, XmlDocument state)     at Microsoft.SharePoint.Administration.SPConfigurationDatabase.GetObject(Guid
    id, Guid parentId, Guid type, String name, SPObjectStatus status, Byte[] versionBuffer, String xml)     at Microsoft.SharePoint.Administration.SPConfigurationDatabase.GetObject(SqlDataReader dr)     at Microsoft.SharePoint.Administration.SPConfigurationDatabase.RefreshCache(Int64
    currentVe...
    Please guide me on the above issue ,this will be of great help
    Thanks.

    I have same error. Verified for trust , ports , cleaned up cache.. nothing has helped. 
    The problem is caused by User profile Synch Service:
    UserProfileProperty_WCFLogging :: ProfilePropertyService.GetProfileProperties Exception: System.SystemException:
    The trust relationship between the primary domain and the trusted domain failed.       at System.Security.Principal.SecurityIdentifier.TranslateToNTAccounts(IdentityReferenceCollection sourceSids,
    Boolean& someFailed)     at System.Security.Principal.SecurityIdentifier.Translate(IdentityReferenceCollection sourceSids, Type targetType, Boolean forceSuccess)     at System.Security.Principal.SecurityIdentifier.Translate(Type
    targetType)     at Microsoft.SharePoint.Administration.SPAce`1.get_PrincipalName()     at Microsoft.SharePoint.Administration.SPAcl`1.Add(String principalName, String displayName, SPIdentifierType identifierType, Byte[]
    identifier, T grantRightsMask, T denyRigh...        
    08/23/2014 13:00:20.96*        w3wp.exe (0x2204)                      
            0x293C        SharePoint Portal Server              User Profiles                
            eh0u        Unexpected        ...tsMask)     at Microsoft.SharePoint.Administration.SPAcl`1..ctor(String persistedAcl)    
    at Microsoft.Office.Server.Administration.UserProfileApplication.get_SerializedAdministratorAcl()     at Microsoft.Office.Server.Administration.UserProfileApplication.GetProperties()     at Microsoft.Office.Server.UserProfiles.ProfilePropertyService.GetProfileProperties()
    Please let me know if you any solution found for this?
    Regards,
    Kunal  

  • Error while adding a used relationship between the New DC and the Web DC

    Hi Gurus
    We are getting the Error in NWDS while Adding  a used relationship between the New DC and the Web DC.
    Steps what we are Done
    1. Create the custom project from inactiveDC's
    2.creating the project for the component crm/b2b in SHRAPP_1
    3.After that we changed the application.xml and given the contect path.
    4.Then we tried to add Dependency to the custom create DC we are getting the error saying that illegal deppendency : the compartment sap.com_CUSTCRMPRJ_1 of DC sap.com/home/b2b_xyz(sap.com.CUSTCRMPRJ_1) must explicitly use compartment sap.com_SAP-SHRWEB_1 of DC sap.com/crm/isa/ like that it was throwing the error.
    so, we skip this step and tried to create the build then it is saying that build is failed..
    Please help us in this regard.
    Awaiting for ur quick response...
    Regards
    Satish

    Hi
    Please Ignore my above message.
    Thanks for ur Response.
    After ur valuble inputs we have added the required dependencies and sucessfully created the projects, then building of the  projects was also sucessfully done and  EAR file was created.
    We need to deploy this EAR file in CRM Application Server by using the interface NWDI.
    For Deploying the EAR into NWDI, we need to check-in the activites what i have created for EAR. once i check-in the activites ,the NWDI will deploy the EAR into CRM Application Server.
    In the Activity Log we are able to check the Activities as Suceeded but the Deployment column is not showing any status.
    When i  right click on my activity Id the deployment summery is also disabled.
    So finally my Question is that where can i get the deployment log file, and where can i check the deployment status for my application..
    Any pointers in this regard would be of great help..
    Awaiting for ur valuble Responses..
    Regards
    Satish

  • What is the relationship between the SAP BC and XI?

    Hi Friends,
    What is the relationship between the SAP BC and XI?
    Regards
    Sam

    Hi Samuel Melvin ,
    The SAP BC is basically WebMethod's product supplied free of charge to SAP customers.
    SAP XI is a purchased product from SAP that can be used to integrate multiple systems, you would need to contact your SAP Account rep to discuss licensing issues. You cannot download it for free from sapnet.
    It is probably more relevant to discuss the comparison between these solutions based on a specific scenario, but here are some basic differences. Obviously, the foremost one being that the SAP Exchange Infrastructure (XI) belongs to the SAP Netweaver technology suite, whereas Business Connector although bundled by SAP is really a Integration tool provided by Web Methods.
    Being a Netweaver solution the SAP XI is central in design and configuration. The SAP XI is really integrated as a required solution for some of new mySAP solutions like SRM. For example, the mySAP SRM business scenario for Supplier Self Services in EBP requires the implementation of SAP XI, the Business connector cannot be utilized to replace this scenario. Although the SAP Business Connector can still be utilized with SRM for all XML based communication. Both mySAP SRM and XI runs natively on the SAP WebAS Server.
    The Business Connector is a point to point solution that provides messaging and routing. Currently a number of organizations using the Business Connector utilize it to communicate between its partners using XML based messaging. This can be achieved using SAP XI as well, but SAP's strategy is to utilize XI as a central hub for messaging, routing, and communication between all SAP, non-SAP systems as well as partners. As SAP XI is a relatively new solution, organizations that are looking for communicating with their partners to exchange XML based documents or other point-to-point scenarios can still utilize SAP Business connector.
    Initially, when SAP announced the SAP XI, there was a notion that SAP Business Connector would be phased out and SAP XI would be the solution utilized hereon. But SAP will continue to support the Business Connector, the SAP Exchange Infrastructure will remain as the SAP's strategic integration solution. All new and or updated SAP solutions will make use of the XI for all process-centric, message based integration. As upgrades are scheduled and new solutions deployed we'll see the mandated need for XI but currently the only solution that natively requires SAP XI is mySAP SRM 2.0.
    It will be interesting to see how organizations that already utilize SAP Business Connector warm up the SAP XI idea. But for the most part they will not have a choice really, as the new mySAP products are going to natively require the use of SAP XI for all process-centric integration between the different SAP solutions. But there is no reason why organizations cannot continue to utilize the SAP Business Connector for all point-to-point solutions already deployed with possibly document exchange and partner integration. Hope this helps.
    These web-sites may help u in understanding XI & BC
    Understanding SAP XI SEEBURGER
    http://www.seeburger.com/fileadmin/com/pdf/SAP_Exchange_Infrastructure_Integratio_Strategy.pdf
    http://www.t2b.ch/Flyers/t2b%20SAP%20Xi%20Flyer.pdf
    SAP Exchange Infrastructure (BC-XI)
    http://help.sap.com/saphelp_srm30/helpdata/en/0f/80243b4a66ae0ce10000000a11402f/content.htm
    webMethods for SAP
    http://www1.webmethods.com/PDF/webMethods_for_SAP-wp.pdf
    http://help.sap.com/saphelp_srm30/helpdata/en/72/0fe1385bed2815e10000000a114084/content.htm
    cheers!
    gyanaraj
    ****Reward points if u find this helpful

  • Relationship between TRANSACTION DOCUMENT Nu00BA and REQUEST/TASK

    Dear Gurus
    I've created  an change request - urgent correction and this assined to ID (Transaction Document Nº) = for example 8000001285.
    The next step is create the Request/Task relationship with this ID.
    I need to generate report that have relationship between Transaction Document Nº and Request/Task, but I need to know the tables that save this information.
    Could you please help me?
    LASAM

    Thanks,
    SAP is working to make the two technologies comparable, as we can see also from products like [SAP Application Interface Framework|http://help.sap.com/saphelp_aif10/helpdata/en/5a/3eacf824e74542abbd2271238dc70b/frameset.htm] so I ask to the community if somebody find how the linking between the business document and ABAP proxies is implemented
    Regards

  • Relationship between a Sales Order and Purchase Order

    Dear All,
    Can we create a relationship between a Sales Order and Purchase Order.? If yes, then how can we do that.
    or how can we relate supply and demand..
    Please update...
    many thanks in advance...

    It's easy
    refere to my blog for complete Query between
    OM - Req and POs.
    http://eoracleapps.blogspot.com/2009/04/oracle-order-to-cash-queries.html

  • Creation of Relationship between an Org Unit and ROSTER

    Hi All,
    I have Done All the Back end Settings For Roster.However when i am trying to Create relationship between Roster and an Org unit,there is no avaibility Of Rosters.Can Someone Please Guide me Out.
    Thanks,
    Punam

    HI,
    There are standard  relationship for Rosters (91 ,92 ,93 and 94),
    but befor doing all the configuration you have to activate switch for roster
    Go to transaction SHDG
    Choose the path Application Components-> payroll->India->India public sector.
    Click on change Global fields Icon and add the value as u2018Xu2019 for data element u201CPIN_SW_INPSu201D.
    Activate the entry
    Warm Regards,
    Kapil Kaushal

  • Relationship between Solution Manager Diagnostic and CCMS

    We are just now looking at Solution Manager Diagnostics and central monitoring in Solution Manager.  One thing we are not clear on, and haven't seen anything definitive on, is the relationship between these  and CCMS.
    Any insight or link to documentation would be greatly appreciated.
    Thanks!
    Jeff Henke

    Solution Manager Diagnostics is a diagnostic tool, not a real-time monitoring and alerting tool.  CCMS is for real-time monitoring and alerting, and SMD does in fact get data from your CCMS agents, as well as from saposcol and Wily Introscope.
    Hope that helps,
    David.

  • Relationship between FINANCIAL STATEMENT ITEM and GL ACCOUNT NUMBER

    hii experts...
    can anyone tell me the relationship between FINANCIAL STATEMENT ITEM (FIELD NAME: ERGSL) and GL ACCOUNT number corresponding to that FSV..
    and if these fields are present in any table... den please do tell...
    thanks in advance.

    Thanks Raymond for giving me suggestion...
    bt wat actually is my problem na...
    i m creating a balance sheet in BAPI and in this I need FSV and GL account number...
    i got everyting bt i cant find the realtionship between these two fields...
    hope u understand my problem..

  • Relationship between SAP R/3 and XI

    Hi
    I have a question. What kindoff relationship exists between an R/3 system and XI system. Is it 1:1 or 1:many.
    Lets say i have a requirement where i have one r/3 system and 3 EAI system. I want to generate an idoc or rfc from a single r/3 which has to go through all the 3 EAI systems. Is it possible. If so how do i achieve it.
    If not why is it so.
    I was having a debate on this with my colleague at my work-place and i would like to hear from you all as to what your opinion is about this.
    regards
    Sameer

    Hi Sameer,
    it is no problem to implement an n:m relationship between systems. For example, you can have one R/3 sending an material master IDoc, configure in the receiver determination that this IDoc should go to 3 different receivers, than define for each receiver the interface as expected by the receiver (of course you will have to implement the payload mappings) and than choose three different adapters for sending the messages.
    regards, frank

  • Get items between in the publishingstartdate and publishingend date in a content type.

    Hi,
    I have a content type that has  two site columns publishingStartdate and publishing end date.
    The content type is added to a document library.
    When I create an item of the content type then it  gives two options for publishing start date as immediately and then a date fiel.d
    For publishing end date as never and a date control.
    Now I want to be able to get only the results which are published as in  todays date is in between  publishing start date and end date.
    But  it seems publihsingstart date and publishingend date fields are text type hence I cannot run CAML Query with Greater than  and less than.
    Is there a way to get the items and run the caml quey 

    Hey Dennis,
    Thanks for the reply.
    But I am facing a strange issue. That is I also want to be able to get only those items contain certain keyword in the title column.
    I am using the following query, But it is not giving the right results. Here is the query 
    <Where>
                          <And>
                                                     <Or>
                                                        <And>
                                                          <Or>
                                                              <And>
                                                                 <BeginsWith>
                                                                    <FieldRef Name='ContentTypeId'
    />
                                                                    <Value Type='ContentTypeId'>{0}</Value>
                                                                 </BeginsWith>
                                                                 <IsNull>
                                                                    <FieldRef Name='PublishingStartDate'
    />
                                                                 </IsNull>
                                                              </And>
                                                              <Leq>
                                                                 <FieldRef Name='PublishingStartDate' />
                                                                 <Value Type='DateTime'>
                                                                    <Today />
                                                                 </Value>
                                                              </Leq>
                                                           </Or>
                                                           <IsNull>
                                                              <FieldRef Name='PublishingEndDate' />
                                                           </IsNull>
                                                        </And>
                                                        <Geq>
                                                           <FieldRef Name='PublishingEndDate' />
                                                           <Value Type='DateTime'>
                                                              <Today />
                                                           </Value>
                                                        </Geq>
                                                     </Or>
                          <Contains>
                          <FieldRef Name='Title' />
                       <Value Type='Text'>{1}</Value>
                        </Contains>
                        </And>
                                                    </Where><OrderBy><FieldRef Name='PostedDate' Ascending='False' /></OrderBy>
    But it is giving me incorrect results.
    Should I be using joins in SPQuery.

  • Relationship between Contracts Core module and other contract modules

    Hi,
    I am wondering the relationship between contracts core and related modules like Project contracts, sales contracts, procurement contracts and service contracts. Are they related, I mean if I want to create a project contract in projects do I need to have a core contract created in Contract core module, is this contracts core module is same Contracts module of CRM.
    When I tried to develop some reports in Project contracts module in past I noticed the project contracts information is not available in one applications like OKE, it has to be taken from contracts core and contract projects database schema tables ( OKC ).
    Please help me in understanding the whole scenario with respect to contracts created in various modules. Is it mandatory to have a contract created in Contracts (CRM ) module first and then the contracts in various applications?. What is contracts Core module? If I try to create a contract in Projects or any other module I will have a workbench to do it but that workbench could have been a collection of forms registered in various other applications including contracts core module in that case it becomes difficult to single out which tables it is interacting with as in many cases they are views.
    Please give me a clear picture. I tried to get it from various user/implementation guides but things are not very clear. I am a developer but need to understand these procedures.
    Thanks in advance,
    Regards

    I think in this case : that you must demonstrate how do you know abap langage (of core SAP). And which part of SAP do you have used : experience of MM developments, stock requirement...
    Regards,
    Christophe.
    Don't hesitate to reward if helpful

  • Relationship between size of block and intelligent calc?

    <p>hi</p><p>i am going through DBAG. it is written that  "Ifdatablocks are much larger than 100Kb, Intelligent Calc doesn'twork effectively".</p><ul><li>what is the relationship between size of datablock andintelligent calc....the intelligent calc is something related tothe dirty blocks...i mean if we set intelligent calc on..itcalculates only the dirty block</li></ul><p>please help</p><p> </p><p>thanks and regards,</p><p>Balu</p><p> </p><p> </p>

    Maybe BD was supposed to read DB.
    "...how many IOPS a DB is going to consume."?
    You need to look at a specific database application to begin with. (A database in itself does not consume much of anything.)
    Then, what exactly are you trying to figure out and why?

  • Relationship between amount of users and IOPS

    Hi all,
    I am pretty new in Oracle and I would like to predict how many IOPS a BD is going to consume. Is there any relationship between amount of users, or datafiles' size with IOPS?? Is there any formula to predict IOPSs in Oracle's BDs??
    Please let me know.
    Thanks in advance.
    Regards,
    Luis Sakihama

    Maybe BD was supposed to read DB.
    "...how many IOPS a DB is going to consume."?
    You need to look at a specific database application to begin with. (A database in itself does not consume much of anything.)
    Then, what exactly are you trying to figure out and why?

Maybe you are looking for