June 19, 2013

Comment: Database problems in MySQL/PHP Applications

…however it > does not always bring good performance. Joins are expensive and > you can often do…/ how to create indexes. Foreign key references may add processing time to inserts, updates, and deletes…however start > to crawl. > So developing you PHP applications use test database with reasonable > …

Post: SQL Injection Questions Followup

…of how I do it using PHP: $placeholders = join(“,”, array_fill(0, count($params), “?”)); $sql…security very challenging.  Whereas with performance, your site is working well…or parameterize to ensure you insert data values safely, and …here:  https://www.owasp.org/index.php/Cross_Site_Scripting_Flaw I…

Comment: Using delayed JOIN to optimize count(*) and LIMIT queries

… mix of my indexes so it will never even look at those rows that don’t match. – I insert the results of this query in the temp table – I sort and limit the temp table and fetch it – I perform all my joins from the temp table (no freaky IN() from php) It went from a few…