Performance Issues
-
we have a site that is using sequential numbers pro. during an audit, we found that when a customer checks out, during the ajax request, a very long query occurs.
for context, we have upwards of 600k orders.
we added the performance mode filter. all that this did was slightly modify the query, but it took basically the same amount of time.
is there any way to make this more performant?
here is an example of the query (not in performance mode)
INSERT INTO wp_6_postmeta (post_id,meta_key,meta_value) SELECT 648387,’_order_number’,IF(MAX(CAST(meta_value AS SIGNED)) IS NULL OR MAX(CAST(meta_value AS SIGNED)) < 3005240000, 3005240000, MAX(CAST(meta_value AS SIGNED))+1) FROM wp_6_postmeta WHERE meta_key=’_order_number’
here is an example of the query (while in performance mode)
SELECT MAX( CAST( meta_value AS SIGNED ) ) FROM wp_6_postmeta WHERE meta_key=’_order_number’
— just an edit —
i retried again and things were much faster. would it make sense that performance mode may run slowly on the first attempt?
The topic ‘Performance Issues’ is closed to new replies.