how can I do list with about 16000 items, which can view and edit only about 2500 users (every only its items, so about 6...). It would be based on column with user number. I found for example this article https://www.portalfronthosting.com/blog/sharepoint-item-permissions-based-on-column-value, but every solutions says, that i have to do about 2500 different adjustments (folders, workflow conditions)
So I would like to do it programatically (http://sharepoint.infoyen.com/2012/03/13/setting-list-item-permissions-programatically-in-sharepoint/). All the items have the same permissions, but script compares logged in user with specific column and hide/disable items where it won´t be his number. I don´t want to set permission to items individually (due to workflow) because it become very slow:(