query-optimization
MySQL Query Needs Optimizations
I have this users table with: id : int (255) name: char (100) last_comment_target: int(100) last_comment_date: datetime[详细]
2023-03-29 03:18 分类:问答How to aggregate related object counts in a view effectively?
Imagine this scenario: I have three tables in my database: Products, Users and Likes, the latter representing a relation between a Product and a User. Now I have a query, which joins Products with th[详细]
2023-03-29 02:21 分类:问答Optimizing MySQL query to avoid scanning a lot of rows
I am running an application that is using t开发者_如何学编程ablessimilar to the below tables. There are one tables for articles and there is another table for tags. I want to get the latest 30 article[详细]
2023-03-28 19:24 分类:问答Is it necessary to consider dropping the existing index because it is a prefix of the recommended index
SQL Tuning Advisor of Oracle SQL Developer v3 suggests the following for my query: Consider running the Access Advisor to improve the physical schema[详细]
2023-03-28 16:32 分类:问答Improve MySQL Query with IN Subquery
I hava a table items and a table item_attributes. For simplicity let\'s say my table item has a column id and a column name.[详细]
2023-03-27 23:22 分类:问答Slow MySQL joins with inner select
The following query works, but becomes slower as the size of the sendlog table increases over time. The goal is to select a list of all subscribers from the newsletter_subscribers table which do not h[详细]
2023-03-27 20:38 分类:问答XQUERY SQL - How to pass individual node element(s) as variables?
Is there an alternate way to pass node elements dynamically than the one shown below - ? select XMLTable.XMLCOL.query(\'//*[local-name()=sql:variable("@node")\')[详细]
2023-03-27 09:47 分类:问答Statistics and Cardinality Estimation - Why am I seeing this result?
I came across this little issue when trying to solve a more complex problem and have gotten to the end of my rope with trying to figure the optimizer out. So, let\'s say I have a table called `MyTable[详细]
2023-03-27 08:17 分类:问答SQL Server - Reduce number of Reads [closed]
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari[详细]
2023-03-27 07:40 分类:问答MySql Query very slow
I run the following query on my database : SELECT e.id_dernier_fichier FROM Enfants e JOIN FichiersEnfants f[详细]
2023-03-27 07:23 分类:问答