gitbitex-spot icon indicating copy to clipboard operation
gitbitex-spot copied to clipboard

Zero(0) trade id in g_fill table

Open amitsharma8891 opened this issue 6 years ago • 3 comments

Hi,

In g_fill table, there are records with trade id as, while there is no such trade id exist in g_trade table.

Please find the attached screenshot.

Screenshot 2019-11-13 at 4 55 45 PM

amitsharma8891 avatar Nov 13 '19 11:11 amitsharma8891

The fill record with trade_id = 0 is a done record (fill. Done = true), indicating that the order has been completed

greensheng avatar Nov 14 '19 02:11 greensheng

It causing foreign key constraints error...any solution for this?

amitsharma8891 avatar Nov 14 '19 06:11 amitsharma8891

Usually in large-scale systems, we do not use foreign key constraints to ensure data consistency. Imagine that if we need to split tables and databases because of the huge amount of data, foreign key constraints will lead to the implementation of the above scheme is very complex.

greensheng avatar Nov 14 '19 06:11 greensheng