1

Will having an Array of PFFiles (also stored in another table on the server) in a User object increase that objects size, or will only references be held?

I know that you can associate a user with each file but it helps the app a lot if there is also a table of files in each user item. Is there a way to effectively do this without greatly increasing memory usage?

4

1 回答 1

1

当您上传文件(通过任何接口)时,您会返回对该文件的引用,您可以将其与其他对象(例如用户)关联。当您进行此引用时,它就像指向文件对象的指针,而不是文件对象的完整副本。不管你存储多少,你只是在添加指针。显然,这些指针确实占用了一些空间,但与文件的大小相比它是最小的(基本上在所有情况下)。

于 2015-03-30T16:42:07.787 回答