gosqasorg / asset-provenance-tracking

Node.js implementation, using Azure as a backend, of a system for Global Distributed Tracking, a free-of-charge, free-software system for building up a provenance or history of objects/assets/devices.
https://gosqas.org/
GNU Affero General Public License v3.0
5 stars 3 forks source link

[FEATURE REQUEST] Build a test script to add (and delete) N devices to the system #112

Open RobertLRead opened 3 months ago

RobertLRead commented 3 months ago

We have not yet noticed a performance problem, but to keep it that way we should write a script that allows us to add a million records and delete them (at least locally.)

Of course, we should test with a thousand before a million. What I imagine is a script, or possibly and "admin" page in Nuxt, where you just enter I, J, and K, and it creates I containers with J with children, each of which has K provenance entries. We never intend to delete records from a production system, but locally we would like to be able to build up and tear down test instances.

I'm pretty sure my "statistics" page will start to be slow at 1000 provenance records.

This can become more sophisticated over time; we don't have to get everything perfect on the first try. For example, we may eventually create a statistical model of tagging, or allow "grandchildren" relationships; the Issue covers only the simplest possible solution. In fact, it would be valuable to have this without even the containers.

This is an important part of professional software development. I'm a fan of Test-Driven Development, but have rarely had the discipline to use it on GUI-heavy projects (it is much easier on backend-heavy projects.)

RobertLRead commented 3 months ago

I initially assigned this to @K42IE because I think she will enjoy this.