Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zero(0) trade id in g_fill table #16

Open
amitsharma8891 opened this issue Nov 13, 2019 · 3 comments
Open

Zero(0) trade id in g_fill table #16

amitsharma8891 opened this issue Nov 13, 2019 · 3 comments

Comments

@amitsharma8891
Copy link

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 amitsharma8891 changed the title Trade id zero in g_fill table Zero(0) trade id in g_fill table Nov 13, 2019
@greensheng
Copy link
Member

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

@amitsharma8891
Copy link
Author

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

@greensheng
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants