I have a query which uses the view a as follows and the query is extremely slow. The view a is made up another four views b,c,d,e. I have create ...
I have a query which uses the view a as follows and the query is extremely slow. The view a is made up another four views b,c,d,e. I have create ...
I have this complex Oracle query. I tried some optimization: But I get more than 40+ seconds of execution. Looks like because list of tasks is q ...
Is it possible somehow to specify the javax.persistence.fetchgraph or javax.persistence.loadgraph using @QueryHint in Spring Data Jpa? I have an enti ...
I have recently been introduced to SparkSQL. We use Spark 2.4. I recently found out that SparkSQL query supports the following hints for its Join stra ...
I have a table (Not all columns shown) that shows type. Typeid is the PK. There is some date overlap that should not be there. I want to remove those ...
I am using spring-data for DB interaction. I want to see the jpa sql execution plan for a query written in repository. How can i do it. https://vladm ...
Below is an example of a query I might run where, for each category, I want the NumberOfCourses to represent not only that specific category but also ...
In my project database present table Products, one column called 'Name' So, this table can contain 'Product A' and 'Product a' Both products should be ...
I have an SQL query on a view using several joins that is occasionally running really slow - a lot slower than normal, making the query nearly unusabl ...
Recently I have gone through with Hints and Locks in SQL server. While google about this topic I have read one blog where some query have been written ...
I have a query that is returning an error with the maximum levels of recursion exceeded. I know how to fix this by adding OPTION (maxrecursion 0) to ...
I have a search view with a background drawable, but I can't seem to get the text to appear no matter what I try. No text shows up in the SearchView. ...
I'm working to explore the new features of JPA 2.1 with spring ex. EntityGraph feature by making a sample CRUD operations using a sample relations bet ...
I need to insert around 50 tables that have bulk data in them via DBLink. I generally use the statement In some cases, it takes too long to insert. ...
All, I want to use a hint in a hosted variable; in fact, we need to use a dynamic value of the hint (Hint should be valued at runtime). can we write ...
I don't get why I can't use the primary key as index in my view. Here's the main table Here's the view And here the procedure that gives me a w ...
This is the schema : And this is the sql that as I understand is too complex for SQL Optimizer: SQLFIDDLE: http://sqlfiddle.com/#!6/aa74e/11 (w ...
I have tried to get source running as explained in http://eclipse.org/eclipselink/documentation/2.4/jpa/extensions/a_fetchgroup.htm Sadly it ends u ...
does anyone know how about using Query Hints with the "FOR XML" statement? My (Sub-)Query looks like this: When I add I get Syntax errors... th ...
SQL Server 2014's "Hekaton" in-memory table optimization proclaims, "Native compilation of business logic in stored procedures." Because of issues wit ...