I need to find all Persons which are in radius of some point. Is possible to find on SQLAlchemy query level which persons are inside circle with center c =(x,y) and radius=r ?
class PersonModel(Base):
x = Column(Float, nullable=False)
y = Column(Float, nullable=False)
# other data like name and so on
I can easily find all in square or iterate through all and then in python inside for loop eliminate all which are out but I wonder can I eliminate already at query level, it would be faster?