Help with storing large amounts of pages

Hi all!

We’re creating a internal ‘resource management’ tool where we keep all our tasks. In front-end, we use a calendar view per week (monday to friday). All front-end is done via Vue (with Vuex). We would like to get the tasks per date range (week start / week end).

We have +/- 10 coworkers with each about 3/4 tasks per day. Times 5, this means about 200 tasks per week. Each task is saved as a single page under the tasks page.

Our setup at this stage is very flat:

projects
	project-a
	project-b

users
	user-a
	user-a

tasks
	task-a
	task-b

A task has a date, is linked to a user (1) and a project (1). We are a bit concerned about bloating a single folder with tasks and are thinking of a good solution to ‘archive’ the tasks, making the whole app more performant. Is it the best practice to archive like so:

tasks
	year
		month
			task-a

Or is there a better solution / approach? If we provide year/month folders, there has to be a easy method to move a task to a different year / month folder. Is this done via the $page->move() method?

TL:DR; We’re searching for the most performant method to store tasks which have a date. The task itself myst be fairly easy moved to a different year or month.

With $page->move() you can only change the UID. Kirby doesn’t have a method for moving pages to other parents. You can use the Dir toolkit class for this purpose, though.