G
G
Gorthaur2017-05-08 11:49:11
Database
Gorthaur, 2017-05-08 11:49:11

How to store matrix ratio data in database?

Good afternoon, colleagues! I broke my head, I can not find the right solution:
How to store data in the database, which are matrix related to each other? For example, there are three destinations - A, B and C. Distance a-b = 100, a-c = 200, b-c = 250. It follows that the route b-a = a-b and so on. How to store such information correctly so as not to duplicate records, and when requesting a-b/b-a route, refer to the same object?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2017-05-08
@sim3x

from
to
length
no duplication - the duty of business logic
If the task is real, then there is postgis.net

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question