Query Metrics
26
Database Queries
23
Different statements
2319.33 ms
Query time
0
Invalid entities
Grouped Statements
Time▼ | Count | Info |
---|---|---|
2302.45 ms (99.27%) |
1 |
INSERT INTO valueinvoice_perf_log (date, route, nb_request, nb_request_failed, total_time_millisecond) VALUES (:date, :route, 1, :failed, :time) ON DUPLICATE KEY UPDATE nb_request=nb_request + 1, total_time_millisecond=total_time_millisecond + :time, nb_request_failed=nb_request_failed + :failed
Parameters:
[ ":date" => "2024-12-21" ":route" => "valuein_invoiceapi_subscription_getsubscription" ":failed" => 0 ":time" => 782 ] |
1.45 ms (0.06%) |
2 |
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.login AS login_6, t0.password AS password_7, t0.name AS name_8, t0.balance AS balance_9, t0.total_invoice_balance AS total_invoice_balance_10, t0.credit_balance AS credit_balance_11, t0.crm_id AS crm_id_12, t0.status AS status_13, t0.currency AS currency_14, t0.notes AS notes_15, t0.tax_exempt AS tax_exempt_16, t0.company_id AS company_id_17, t0.bill_to_id AS bill_to_id_18, t0.sold_to_id AS sold_to_id_19, t21.id AS id_20, t21.deleted AS deleted_22, t21.created_at AS created_at_23, t21.updated_at AS updated_at_24, t21.deleted_at AS deleted_at_25, t21.title AS title_26, t21.prefix AS prefix_27, t21.is_default AS is_default_28, t21.languages_codes AS languages_codes_29, t21.currency AS currency_30, t21.company_id AS company_id_31, t21.billing_account_id AS billing_account_id_32, t0.entityType, t0.invoice_number_sequence_name AS invoice_number_sequence_name_33, t0.bill_cycle_day AS bill_cycle_day_34, t0.invoice_template_id AS invoice_template_id_35, t0.default_payment_method_id AS default_payment_method_id_36 FROM valueinvoice_customer t0 LEFT JOIN valueinvoice_legal_entity t21 ON t21.billing_account_id = t0.id WHERE t0.sold_to_id = ? AND t0.entityType IN ('customer', 'invoiceenginecustomer') AND ((t0.company_id IN ('229')) AND (t0.deleted = 0))
Parameters:
[
6056
]
|
1.32 ms (0.06%) |
2 |
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.description AS description_6, t0.gender AS gender_7, t0.firstname AS firstname_8, t0.lastname AS lastname_9, t0.phone_number AS phone_number_10, t0.address1 AS address1_11, t0.address2 AS address2_12, t0.city AS city_13, t0.tax_region AS tax_region_14, t0.postal_code AS postal_code_15, t0.state AS state_16, t0.country AS country_17, t0.email AS email_18, t0.login AS login_19, t0.password AS password_20, t0.tax_id AS tax_id_21, t0.avalara_customer_id AS avalara_customer_id_22, t0.company_id AS company_id_23, t0.customer_id AS customer_id_24, t0.secondary_contact_account_id AS secondary_contact_account_id_25, t0.entityType FROM valueinvoice_contact t0 WHERE t0.id = ? AND t0.entityType IN ('contact') AND ((t0.company_id IN ('229')) AND (t0.deleted = 0))
Parameters:
[
6056
]
|
1.29 ms (0.06%) |
2 |
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.login AS login_6, t0.password AS password_7, t0.name AS name_8, t0.balance AS balance_9, t0.total_invoice_balance AS total_invoice_balance_10, t0.credit_balance AS credit_balance_11, t0.crm_id AS crm_id_12, t0.status AS status_13, t0.currency AS currency_14, t0.notes AS notes_15, t0.tax_exempt AS tax_exempt_16, t0.company_id AS company_id_17, t0.bill_to_id AS bill_to_id_18, t0.sold_to_id AS sold_to_id_19, t21.id AS id_20, t21.deleted AS deleted_22, t21.created_at AS created_at_23, t21.updated_at AS updated_at_24, t21.deleted_at AS deleted_at_25, t21.title AS title_26, t21.prefix AS prefix_27, t21.is_default AS is_default_28, t21.languages_codes AS languages_codes_29, t21.currency AS currency_30, t21.company_id AS company_id_31, t21.billing_account_id AS billing_account_id_32, t0.entityType, t0.invoice_number_sequence_name AS invoice_number_sequence_name_33, t0.bill_cycle_day AS bill_cycle_day_34, t0.invoice_template_id AS invoice_template_id_35, t0.default_payment_method_id AS default_payment_method_id_36 FROM valueinvoice_customer t0 LEFT JOIN valueinvoice_legal_entity t21 ON t21.billing_account_id = t0.id WHERE t0.bill_to_id = ? AND t0.entityType IN ('customer', 'invoiceenginecustomer') AND ((t0.company_id IN ('229')) AND (t0.deleted = 0))
Parameters:
[
6056
]
|
0.95 ms (0.04%) |
1 |
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.field AS field_6, t0.delta AS delta_7, t0.value AS value_8, t0.subscriptionitem_id AS subscriptionitem_id_9 FROM valueinvoice_subscriptionitem_eav_string t0 WHERE t0.subscriptionitem_id = ? AND ((t0.deleted = 0)) ORDER BY t0.field ASC
Parameters:
[
10105
]
|
0.90 ms (0.04%) |
1 |
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.product_name AS product_name_6, t0.product_sku AS product_sku_7, t0.charge_name AS charge_name_8, t0.accounting_code AS accounting_code_9, t0.accounting_code_number AS accounting_code_number_10, t0.amount AS amount_11, t0.amount_without_tax AS amount_without_tax_12, t0.tax_amount AS tax_amount_13, t0.quantity AS quantity_14, t0.service_start_date AS service_start_date_15, t0.service_end_date AS service_end_date_16, t0.tax_rate AS tax_rate_17, t0.company_id AS company_id_18, t0.invoice_id AS invoice_id_19, t0.subscription_id AS subscription_id_20, t0.journal_entry_id AS journal_entry_id_21, t0.subscription_item_id AS subscription_item_id_22, t0.parent_invoice_item_id AS parent_invoice_item_id_23, t0.accounting_period_id AS accounting_period_id_24, t0.charge_id AS charge_id_25, t0.entityType FROM valueinvoice_invoice_item t0 WHERE t0.charge_id = ? AND t0.entityType IN ('invoiceengineinvoiceitem') AND ((t0.company_id IN ('229')) AND (t0.deleted = 0))
Parameters:
[
10286
]
|
0.86 ms (0.04%) |
1 |
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.incremental_number AS incremental_number_6, t0.amount AS amount_7, t0.amount_without_tax AS amount_without_tax_8, t0.tax_amount AS tax_amount_9, t0.balance AS balance_10, t0.payment_amount AS payment_amount_11, t0.adjustment_amount AS adjustment_amount_12, t0.applied_credit_balance AS applied_credit_balance_13, t0.invoice_date AS invoice_date_14, t0.due_date AS due_date_15, t0.recovery_date AS recovery_date_16, t0.posted_date AS posted_date_17, t0.status AS status_18, t0.type AS type_19, t0.company_id AS company_id_20, t0.customer_id AS customer_id_21, t0.entityType, t0.invoice_number_sequence_name AS invoice_number_sequence_name_22, t0.bill_run_id AS bill_run_id_23, t0.invoice_template_id AS invoice_template_id_24, t0.invoice_number_sequence_id AS invoice_number_sequence_id_25 FROM valueinvoice_invoice t0 INNER JOIN valueinvoice_subscription_invoice ON t0.id = valueinvoice_subscription_invoice.invoice_id WHERE valueinvoice_subscription_invoice.subscription_id = ? AND t0.entityType IN ('invoice', 'invoiceengineinvoice') AND ((t0.company_id IN ('229')) AND (t0.deleted = 0))
Parameters:
[
9372
]
|
0.86 ms (0.04%) |
1 |
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.incremental_number AS incremental_number_6, t0.auto_renew AS auto_renew_7, t0.cancelled_date AS cancelled_date_8, t0.contract_effective_date AS contract_effective_date_9, t0.contract_acceptance_date AS contract_acceptance_date_10, t0.current_term AS current_term_11, t0.current_term_period_type AS current_term_period_type_12, t0.initial_term AS initial_term_13, t0.initial_term_period_type AS initial_term_period_type_14, t0.quote_number AS quote_number_15, t0.quote_type AS quote_type_16, t0.renewal_setting AS renewal_setting_17, t0.renewal_term AS renewal_term_18, t0.renewal_term_period_type AS renewal_term_period_type_19, t0.service_activation_date AS service_activation_date_20, t0.subscription_end_date AS subscription_end_date_21, t0.subscription_start_date AS subscription_start_date_22, t0.term_end_date AS term_end_date_23, t0.term_start_date AS term_start_date_24, t0.term_type AS term_type_25, t0.version AS version_26, t0.notes AS notes_27, t0.customer_id AS customer_id_28, t0.invoice_owner_id AS invoice_owner_id_29, t0.company_id AS company_id_30, t0.user_id AS user_id_31, t0.status_id AS status_id_32, t0.entityType, t0.invoice_number_sequence_name AS invoice_number_sequence_name_33, t0.invoice_separately AS invoice_separately_34, t0.notification_url AS notification_url_35, t0.shop_endpoint AS shop_endpoint_36, t0.invoice_template_id AS invoice_template_id_37 FROM valueinvoice_subscription t0 WHERE t0.id = ? AND t0.entityType IN ('subscription', 'invoiceenginesubscription') AND ((t0.company_id IN ('229')) AND (t0.deleted = 0))
Parameters:
[
"9372"
]
|
0.85 ms (0.04%) |
1 |
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.charge_type AS charge_type_6, t0.period_start AS period_start_7, t0.period_end AS period_end_8, t0.billing_period AS billing_period_9, t0.billing_period_iterations AS billing_period_iterations_10, t0.billing_period_specific_duration AS billing_period_specific_duration_11, t0.billing_timing AS billing_timing_12, t0.billing_day AS billing_day_13, t0.billing_day_specific AS billing_day_specific_14, t0.quantity AS quantity_15, t0.charge_name AS charge_name_16, t0.accounting_code AS accounting_code_17, t0.accounting_code_number AS accounting_code_number_18, t0.tax_mode AS tax_mode_19, t0.removed AS removed_20, t0.subscription_item_id AS subscription_item_id_21, t0.company_id AS company_id_22, t0.tax_class_id AS tax_class_id_23, t0.replacement_charge AS replacement_charge_24, t0.entityType, t0.discount_amount AS discount_amount_25, t0.discount_percentage AS discount_percentage_26, t0.flat_fee_price AS flat_fee_price_27, t0.per_unit_price AS per_unit_price_28 FROM valueinvoice_invoice_engine_subscription_item_charge t0 WHERE t0.subscription_item_id = ? AND t0.entityType IN ('invoiceenginesubscriptionitemcharge', 'invoiceenginesubscriptionitemchargediscountfixedamount', 'invoiceenginesubscriptionitemchargediscountpercentage', 'invoiceenginesubscriptionitemchargeflatfee', 'invoiceenginesubscriptionitemchargefreeitem', 'invoiceenginesubscriptionitemchargeperunit') AND ((t0.company_id IN ('229')) AND (t0.deleted = 0))
Parameters:
[
10105
]
|
0.80 ms (0.03%) |
1 |
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.login AS login_6, t0.password AS password_7, t0.name AS name_8, t0.balance AS balance_9, t0.total_invoice_balance AS total_invoice_balance_10, t0.credit_balance AS credit_balance_11, t0.crm_id AS crm_id_12, t0.status AS status_13, t0.currency AS currency_14, t0.notes AS notes_15, t0.tax_exempt AS tax_exempt_16, t0.company_id AS company_id_17, t0.bill_to_id AS bill_to_id_18, t0.sold_to_id AS sold_to_id_19, t21.id AS id_20, t21.deleted AS deleted_22, t21.created_at AS created_at_23, t21.updated_at AS updated_at_24, t21.deleted_at AS deleted_at_25, t21.title AS title_26, t21.prefix AS prefix_27, t21.is_default AS is_default_28, t21.languages_codes AS languages_codes_29, t21.currency AS currency_30, t21.company_id AS company_id_31, t21.billing_account_id AS billing_account_id_32, t0.entityType, t0.invoice_number_sequence_name AS invoice_number_sequence_name_33, t0.bill_cycle_day AS bill_cycle_day_34, t0.invoice_template_id AS invoice_template_id_35, t0.default_payment_method_id AS default_payment_method_id_36 FROM valueinvoice_customer t0 LEFT JOIN valueinvoice_legal_entity t21 ON t21.billing_account_id = t0.id WHERE t0.id = ? AND t0.entityType IN ('customer', 'invoiceenginecustomer') AND ((t0.company_id IN ('229')) AND (t0.deleted = 0))
Parameters:
[
1127
]
|
0.76 ms (0.03%) |
1 |
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.date AS date_6, t0.description AS description_7, t0.operation AS operation_8, t0.reference_table AS reference_table_9, t0.reference_field AS reference_field_10, t0.reference_id AS reference_id_11, t0.old_value AS old_value_12, t0.new_value AS new_value_13, t0.subscription_id AS subscription_id_14, t0.user_id AS user_id_15 FROM valueinvoice_subscription_history t0 WHERE t0.subscription_id = ? AND ((t0.deleted = 0))
Parameters:
[
9372
]
|
0.68 ms (0.03%) |
1 |
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.name AS name_6, t0.description AS description_7, t0.company_id AS company_id_8, t0.subscription_id AS subscription_id_9, t0.type, t0.date AS date_10, t0.date AS date_11, t0.date AS date_12, t0.product_id AS product_id_13, t0.effective_date AS effective_date_14, t0.product_id AS product_id_15, t0.effective_date AS effective_date_16, t0.renewal_setting AS renewal_setting_17, t0.renewal_term AS renewal_term_18, t0.renewal_term_period_type AS renewal_term_period_type_19, t0.effective_date AS effective_date_20 FROM valueinvoice_amendment t0 WHERE t0.subscription_id = ? AND t0.type IN ('Cancellation', 'SuspendSubscription', 'ResumeSubscription', 'NewProduct', 'RemoveProduct', 'OwnerTransfert', 'Renewal') AND ((t0.company_id IN ('229')) AND (t0.deleted = 0))
Parameters:
[
9372
]
|
0.67 ms (0.03%) |
1 |
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.qty AS qty_6, t0.product_name AS product_name_7, t0.product_image_url AS product_image_url_8, t0.product_description AS product_description_9, t0.product_sku AS product_sku_10, t0.product_final_price AS product_final_price_11, t0.product_original_price AS product_original_price_12, t0.product_vat_amount AS product_vat_amount_13, t0.product_price_calculation AS product_price_calculation_14, t0.effective_start_date AS effective_start_date_15, t0.effective_end_date AS effective_end_date_16, t0.charge_model AS charge_model_17, t0.company_id AS company_id_18, t0.product_id AS product_id_19, t0.subscription_id AS subscription_id_20, t0.product_price_id AS product_price_id_21, t0.entityType FROM valueinvoice_subscription_item t0 WHERE t0.subscription_id = ? AND t0.entityType IN ('subscriptionitem', 'invoiceenginesubscriptionitem') AND ((t0.company_id IN ('229')) AND (t0.deleted = 0))
Parameters:
[
9372
]
|
0.63 ms (0.03%) |
1 |
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.type AS type_6, t0.masked_card_number AS masked_card_number_7, t0.expiration_month AS expiration_month_8, t0.expiration_year AS expiration_year_9, t0.holder_name AS holder_name_10, t0.external AS external_11, t0.company_id AS company_id_12, t0.customer_id AS customer_id_13, t0.entityType, t0.label AS label_14, t0.stripe_token AS stripe_token_15, t0.mandate_id AS mandate_id_16 FROM valueinvoice_invoice_engine_payment_method t0 WHERE t0.id = ? AND t0.entityType IN ('invoiceenginepaymentmethod', 'externalpaymentmethod', 'otherpaymentmethod', 'stripepaymentmethod', 'stripesepapaymentmethod') AND ((t0.company_id IN ('229')) AND (t0.deleted = 0))
Parameters:
[
5422
]
|
0.59 ms (0.03%) |
1 |
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.name AS name_6 FROM valueinvoice_invoice_engine_tax_class t0 WHERE t0.id = ? AND ((t0.deleted = 0))
Parameters:
[
74
]
|
0.59 ms (0.03%) |
1 |
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.name AS name_6 FROM valueinvoice_company t0 INNER JOIN valueinvoice_user_company ON t0.id = valueinvoice_user_company.company_id WHERE valueinvoice_user_company.user_id = ? AND ((t0.deleted = 0))
Parameters:
[
84
]
|
0.58 ms (0.02%) |
1 |
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.field AS field_6, t0.delta AS delta_7, t0.value AS value_8, t0.subscription_id AS subscription_id_9 FROM valueinvoice_subscription_eav_string t0 WHERE t0.subscription_id = ? AND ((t0.deleted = 0)) ORDER BY t0.field ASC
Parameters:
[
9372
]
|
0.57 ms (0.02%) |
1 |
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.field AS field_6, t0.delta AS delta_7, t0.value AS value_8, t0.customer_id AS customer_id_9 FROM valueinvoice_customer_eav_string t0 WHERE t0.customer_id = ? AND ((t0.deleted = 0)) ORDER BY t0.field ASC
Parameters:
[
1127
]
|
0.57 ms (0.02%) |
1 |
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.is_default_role AS is_default_role_6, t0.name AS name_7, t0.is_manager AS is_manager_8, t0.is_admin AS is_admin_9, t0.is_api AS is_api_10, t0.firewall_role AS firewall_role_11 FROM valueinvoice_user_role t0 WHERE t0.id = ? AND ((t0.deleted = 0))
Parameters:
[
260
]
|
0.53 ms (0.02%) |
1 |
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.language_code AS language_code_6, t0.isDefault AS isDefault_7, t0.enabled AS enabled_8, t0.debug AS debug_9, t0.collect AS collect_10 FROM valueinvoice_language t0 WHERE t0.isDefault = ? AND t0.enabled = ? AND ((t0.deleted = 0)) LIMIT 1
Parameters:
[ 1 1 ] |
0.52 ms (0.02%) |
1 |
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.name AS name_6, t0.code AS code_7, t0.company_id AS company_id_8, t0.placed_after_id AS placed_after_id_9 FROM valueinvoice_subscription_status t0 WHERE t0.id = ? AND ((t0.company_id IN ('229')) AND (t0.deleted = 0))
Parameters:
[
54
]
|
0.49 ms (0.02%) |
1 |
SELECT t0.enabled_from AS enabled_from_1, t0.enabled_to AS enabled_to_2, t0.version_api AS version_api_3, t0.tmp_token AS tmp_token_4, t0.security_question AS security_question_5, t0.security_answer AS security_answer_6, t0.title AS title_7, t0.name AS name_8, t0.phone AS phone_9, t0.id AS id_10, t0.username AS username_11, t0.username_canonical AS username_canonical_12, t0.email AS email_13, t0.email_canonical AS email_canonical_14, t0.salt AS salt_15, t0.password AS password_16, t0.enabled AS enabled_17, t0.last_login AS last_login_18, t0.confirmation_token AS confirmation_token_19, t0.password_requested_at AS password_requested_at_20, t0.roles AS roles_21, t0.user_role_id AS user_role_id_22, t0.manager_id AS manager_id_23, t0.assistant_id AS assistant_id_24 FROM valueinvoice_user t0 WHERE t0.username = ? LIMIT 1
Parameters:
[
"api"
]
|
0.42 ms (0.02%) |
1 |
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.language_code AS language_code_6, t0.isDefault AS isDefault_7, t0.enabled AS enabled_8, t0.debug AS debug_9, t0.collect AS collect_10 FROM valueinvoice_language t0 WHERE t0.enabled = ? AND ((t0.deleted = 0))
Parameters:
[
1
]
|
Database Connections
Name | Service |
---|---|
default | doctrine.dbal.default_connection |
Entity Managers
Name | Service |
---|---|
default | doctrine.orm.default_entity_manager |
Second Level Cache
Second Level Cache is not enabled.