Results 1 to 3 of 3
  1. #1
    stsivaraj is offline Member
    Join Date
    Nov 2010
    Posts
    22
    Rep Power
    0

    Default Hibenate fetching process RAM vs CPU

    For hibernate cache and query what is the role of RAM and CPU Processor?

    Object Cache - heap memory in RAM

    Query processing - CPU(Processor)(Using CPC cache)

    Corerect me if I wrong?

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: Hibenate fetching process RAM vs CPU

    Cache: depends on how you configure it and which of the different caches that you talk about (level 1 cache, level 2 cache, query cache, generic Java heap, etc.). Generally it will be "in system memory" yes, because that tends to be the fastest medium to read from.

    Query processing: well that's vague too as when talking about Hibernate then generally there are also multiple forms of query involved; HQL named and unnamed queries, criterias, generated SQL, stored procedures. Depending on what you're talking about and the runtime environment there may be multiple CPUs spanning multiple systems and networks involved even. Usually it will be some form of CPU or multiple CPUs involved to do the processing, but nowadays you might have a setup where even the GPU is also sharing in the workload.

    Rather than asking open-ended questions, you may want to clarify why you're asking this. That makes it easier to reason what kind of answer you're actually looking for.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    stsivaraj is offline Member
    Join Date
    Nov 2010
    Posts
    22
    Rep Power
    0

    Default Re: Hibenate fetching process RAM vs CPU

    Quote Originally Posted by gimbal2 View Post
    Cache: depends on how you configure it and which of the different caches that you talk about (level 1 cache, level 2 cache, query cache, generic Java heap, etc.). Generally it will be "in system memory" yes, because that tends to be the fastest medium to read from.

    Query processing: well that's vague too as when talking about Hibernate then generally there are also multiple forms of query involved; HQL named and unnamed queries, criterias, generated SQL, stored procedures. Depending on what you're talking about and the runtime environment there may be multiple CPUs spanning multiple systems and networks involved even. Usually it will be some form of CPU or multiple CPUs involved to do the processing, but nowadays you might have a setup where even the GPU is also sharing in the workload.

    Rather than asking open-ended questions, you may want to clarify why you're asking this. That makes it easier to reason what kind of answer you're actually looking for.
    Thanks Gimbla, I am asking strigh way. Where the 1 st leve cache will store and asked HQL query processing(How it will utilize the CUP)

Similar Threads

  1. Fetching sequence
    By Shivraj in forum New To Java
    Replies: 1
    Last Post: 03-19-2009, 02:30 PM
  2. Fetching rows from DB
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-06-2008, 09:23 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •