|
|
|
|
|
by Someone
4604 days ago
|
|
I expect your simulation simulates the movements of all mice simultaneously in time order. If so, it might be easier to directly create the overlap results from the simulation. For example, when a mouse enters a box, check and remember what other mice are there. When that mouse leaves, check again and create the record for the stay. If that isn't possible or feasible, check whether your database supports range types and queries. It might be worthwhile to migrate to PostgreSQL just for this (see https://wiki.postgresql.org/images/7/73/Range-types-pgopen-2...) |
|