Basically I don't have knowledge about it, I just want to clear my doubt. That when we use sql in place hql through hibernate API, will it use 2nd level cache before making query in database.? The reason being I want to utilise my 2nd level cache as much as possible.
Does sql query use 2nd level hibernate cache in place of hql.?
127 views Asked by Raj Bhatia At
1
There are 1 answers
Related Questions in SQL
- Can MVC.NET prevent SQL-injection at razor or controller level?
- SQL server not returning all rows
- When dealing with databases, does adding a different table when we can use a simple hash a good thing?
- Creating a parametrized field name for a SELECT clause
- Combine two rows based on common ID
- Column displays each count
- Slick query for one to optional one (zero or one) relationship
- Aggregate and count in PostgreSQL
- MAX and GROUP BY - SQL
- SQL statement for a tricky 2 table query
Related Questions in HIBERNATE
- Hibernate Query Exception: Cannot create critieria on owning entity
- Using like to non-string columns in Grails
- Play Framework Unable to build entity manager factory when Working with PostGIS
- How namedparameter query blocks SQL injection
- Is it necessary to create an repository and a service for each entity?
- JPA, Hibernate can I do composite primary key which one element is foreign kay @OneToMany?
- How to convert Hibernate List to String?
- Hibernate Lazy loading not work in OneToOne relation
- Hibernate Search Faceting not working
- JPA and web app
Related Questions in HQL
- How to perform left join in hql to fetch data
- What is the equivalent HQL query for this SQL query (fetch max value from Inner Join)
- How to pass parameter in HQL query
- Joins in Hibernate : HQL equivalent of given SQL
- Select from Table Valued Function nhibernate
- Hibernate hql/criteria result contains collection
- Hibernate aliasToBean with field collection
- HQL count() with group by not returning zero/0 records
- Hibernate delete by criteria error
- unexpected token : ( subquery hql
Related Questions in EHCACHE
- Ehcache - Not fetching value from Cache
- Setting up RMI ehcache replication with proper multicast address setting
- How to configure Spring UserCache with EhCacheBasedUserCache?
- Cache inconsistency - Entity not always persisted in cached Collection
- Caches of all versions of a webapp deployed in parallel are shutdowned
- Maximum size of the value can be handled by EhCache
- Error with Play 2.4 Tests : The CacheManager has been shut down. It can no longer be used
- How to configure Jcache with Ecache as Provider in Spring application-context.xml?
- How to disable statistic in ehcache 2.8
- Java Cache Implementation in a web application
Related Questions in HIBERNATE-CACHE
- ehcache WAN solutions - should I roll my own?
- caching relations mapped by other entity
- 'read-only cache configured for mutable entity' warn displays when application start up
- Where does external caches like ehcache / redis fit w.r.t hibernate level 1 / level 2 caches?
- Spring Boot Application and Hazelcast NearCache
- is it necessary for query caching region to be same as entity caching region
- Hibernate query cache does not work
- Another unnamed CacheManager already exists when using Hibernate L2 ehcache and spring boot enabledCache
- Hibernate caching on dynamic changing parameters
- Does sql query use 2nd level hibernate cache in place of hql.?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
No, it will not, because Hibernate cannot track what you fetch in the native query.
HQL will also not utilize it before query execution, but after it, when it starts assembling the entities from the result set.