Skip to content

ActiveRow: __isset 2.4.6 update masive increase DB information_schema queries count #203

@spagr

Description

@spagr

Version: 2.4.6

Bug Description

ActiveRow: __isset generate many queries from db information_schema if checked row doesn´t exist.
Attached screenshot shows the difference, left side browser with NDB 2.4.5, right side NDB 2.4.6, same code.

Use case in component with two data source handling :

// Cart Items handler
/** @var ActiveRow $product */
if (isset($product->sessid)) { // Cart table structure
  $quantity = $product->quantity;
  $product = $product->ref('product');
}

Expected Behavior

In version 2.4.5 (left browser) is expected behavior

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions