// Instantiate a cookies query.
QSqlQuery cookiesQuery(cookiesDatabase);
- // Set the query to be forward only.
+ // Set the query to be forward only, which is more performant.
cookiesQuery.setForwardOnly(true);
// Prepare the cookies query.
// Create the update cookie query.
QSqlQuery updateCookieQuery(cookiesDatabase);
- // Prepare the edit cookie query.
+ // Prepare the update cookie query.
updateCookieQuery.prepare("UPDATE " + COOKIES_TABLE +
" SET " + EXPIRATION_DATE + " = :expiration_date , " +
HTTP_ONLY + " = :http_only , " +