It’s confusing in your description. You‘ve got a hundred row table, data from tile_1_1 to tile_10_10, “given” and current values. Do those tiles run from _1_1 to _1_10, then _2_1 to _2_10, etc?You can do two-dimensional data in a database, it’s just usually seen as a bit of overkill. You could define a DataTile entity asRow: intColumn: intgiven valuecurrent valueand then specify row, column as the unique index values so you don’t have to worry about collisions and get a better sorted result.Then you could do your fetch request on DataTile, for dataTypeSort specify row and column as the keys for the sort descriptors, and that’d given you something you could loop over easily. (Especially since you can get the results grouped by row if you want...)If your row,column data is irregular (some rows have more or fewer columns), the database doesn’t mind.
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: