Hi anyone to teach me forex trading guys...

On Thu, 15 Jun 2023, 11:36 Benjamin Schollnick, <bscholln...@schollnick.net>
wrote:

> Hi Everyone!
> So I want to know how to implement a binary tree to a web app.
> This is how the app works:
>
> —  Person A opens an account
> —  Person A refers to people
> — Person B invests,
> — Person A get 10% of Person B's investment
> So it goes on iteratively.
>
>
> Please note, nothing here in your description *needs* (or begs) to be a
> binary tree.
>
> Have a referred field in the person table, which points to the PK of the
> person that referred them.
>
> Then you just do a filter on that persons referred field PK to find out
> who referred them.
>
> Yes, a binary tree is suppose to be one of the faster searches for certain
> types of data…But as described I’m not sure it’s a good fit.
>
> - Benjamin
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/96D0264D-3922-4376-8334-7D11CFFA9456%40schollnick.net
> <https://groups.google.com/d/msgid/django-users/96D0264D-3922-4376-8334-7D11CFFA9456%40schollnick.net?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOxCe%3DTzQTyU_Bo9etb2F_RQYzF8T%3DiPgGrE7yU4YmPZ%3DF3hsg%40mail.gmail.com.

Reply via email to