I have a question about update/delete statements in order to optimize queries in my app.
Does it ever make sense to add something else to a where
clause in order to speed up the query if we already have a primary key in the clause?
Is it ever worth to add other indexes in the statements (besides the primary key)? It will have an impact on query performance? Probably a negative impact because of additional step? Am I right?
Is it ever worth to indicate a specific partition in the where
clause (besides the primary key) if we know which partition the record is on?
Will it speed up the query or slow it down, because the query will use the B-Tree (primary key) in the first step to search for the given record and no need other steps?