query-optimization
MySQL multiple Date subqueries
I am writing a query for a very specific report that contains a variable number of columns, based onspecific relationships of an item. I am open to suggetions on how to change the query if needs be, b[详细]
2023-03-23 12:16 分类:问答mysql index optimization problem
I have a query like below. SE开发者_如何学PythonLECT a,b,c,d FROM table_name WHERE e=1 AND f=0 GROUP BY d[详细]
2023-03-23 10:36 分类:问答MySQL Slow Query Optimisation
I have a database ~800k records showing ticket purchases. All tables are InnoDB. The slow query is: SELECT e.id AS id, e.name AS name, e.url AS url, p.action AS action, gk.key AS `key`[详细]
2023-03-23 02:39 分类:问答Optimizing IN clause
I am using Oracle 10g. Here is my query select * from Entries where RefKey in (select RefKey from Entries[详细]
2023-03-22 18:08 分类:问答Would be SELECT * faster than 40 columns listing? [duplicate]
This question already has answers here: Closed 11 years ago. Possible Duplicate: Which is faster/best? SELECT * or SELECT column1, colum2, column3开发者_JAVA技巧, etc.[详细]
2023-03-22 10:11 分类:问答MySQL db is using "Using where; Using temporary; Using filesort" when sorting by date
I have a database with a bunch of records and when I load up the page with the following SQL its really slow.[详细]
2023-03-22 08:49 分类:问答Is it faster in MySQL to have one filter or several for the same column?
In MySQL, I always consider: .... WHER开发者_如何学PythonE type > 5 to be faster than: ... WHERE type != 4 AND type != 6 AND type != 10[详细]
2023-03-22 06:13 分类:问答How to optimize this "where IN" and "where NOT IN" query?
The following query/queries get the cities the user has visited, get the places where the user has visited; and returns the places in those cities where the user hasn\'t been.[详细]
2023-03-22 05:53 分类:问答Optimal datatype for storing encrypted field data
I have a sql databse which is required to store a set of demographic personal data which must be queried quickly.[详细]
2023-03-21 21:28 分类:问答How do I efficiently delete all rows in a many-to-many relationship table that have a given destination exclusively on one side of the relationship?
I have a MySQL database with a relationship table which can be simplified to: CREATE TABLE `Paths` ( `origin` char(32) NOT NULL,[详细]
2023-03-20 15:01 分类:问答