refactor(SQL): Staging tables and Calc stored procedures used for modular stored procedure archicture for scalability. Implemented for Product Catalogue. \n BREAKING CHANGE: BIT argument a_debug added to all but basic stored procedures for analysis of performance and results.
This commit is contained in:
@@ -5,11 +5,17 @@ DROP PROCEDURE IF EXISTS p_clear_split_temp;
|
||||
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE p_clear_split_temp (
|
||||
IN a_guid BINARY(36)
|
||||
)
|
||||
BEGIN
|
||||
CALL p_validate_guid( a_guid );
|
||||
|
||||
START TRANSACTION;
|
||||
|
||||
DROP TABLE Split_Temp;
|
||||
-- DROP TABLE IF EXISTS
|
||||
DELETE FROM Split_Temp
|
||||
WHERE GUID = a_guid
|
||||
;
|
||||
|
||||
COMMIT;
|
||||
END //
|
||||
@@ -17,11 +23,7 @@ DELIMITER ;;
|
||||
|
||||
/*
|
||||
|
||||
CALL p_clear_shop_user_eval_temp (
|
||||
'noods, cheese ' # a_guid
|
||||
);
|
||||
CALL p_clear_split_temp ( 'nips' );
|
||||
|
||||
SELECT *
|
||||
FROM Shop_User_Eval_Temp;
|
||||
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user