Parse.com - 在.csv中设置ACL以进行导入

时间:2022-02-16 15:49:56

I'm trying to import a database into a class. When I import my csv file, all the rows have Public Read/Write access for the ACL. I have a few questions regarding how to set the ACL to public read only.

我正在尝试将数据库导入到类中。当我导入我的csv文件时,所有行都具有ACL的公共读/写访问权限。我有几个关于如何将ACL设置为公共只读的问题。

  1. How do I change the ACL to only public read in my .csv file so that when I import the file all the ACLs are set to public read only?

    如何在我的.csv文件中将ACL更改为仅公开读取,以便在导入文件时将所有ACL设置为public read only?

  2. Is there a way to set the default ACL of the class to public read so that anything I import into that class will automatically set the ACL to public read only?

    有没有办法将类的默认ACL设置为public read,以便我导入该类的任何内容都会自动将ACL设置为public read only?

My current alternative solution is to have some background CloudCode job scanning through all the rows (group of 1000) and setting the ACL for them 1 by 1 after I've imported all the data. However, I'm expecting 10's of thousands of rows and I'm worried that this will either be very slow in the future or use up a lot of requests per second when I run the job dozens of times sequentially.

我目前的替代解决方案是让一些后台CloudCode作业扫描所有行(1000组)并在导入所有数据后逐个设置ACL。但是,我期待成千上万行中的10行,我担心将来会非常慢,或者当我按顺序运行几十次这样的工作时,每秒会占用大量请求。

Thank you.

谢谢。

-Kelvin

-Kelvin

1 个解决方案

#1


1  

I'm sure you've figured this out, but if anyone else searches this question in the future -

我相信你已经弄明白了,但如果其他人在将来搜索这个问题 -

In the dashboard for you're class, just click the "Security" button:

在您的班级仪表板中,只需单击“安全”按钮:

Parse.com  - 在.csv中设置ACL以进行导入

Then in the popup you can set class-level permissions:

然后在弹出窗口中,您可以设置类级权限:

Parse.com  - 在.csv中设置ACL以进行导入

#1


1  

I'm sure you've figured this out, but if anyone else searches this question in the future -

我相信你已经弄明白了,但如果其他人在将来搜索这个问题 -

In the dashboard for you're class, just click the "Security" button:

在您的班级仪表板中,只需单击“安全”按钮:

Parse.com  - 在.csv中设置ACL以进行导入

Then in the popup you can set class-level permissions:

然后在弹出窗口中,您可以设置类级权限:

Parse.com  - 在.csv中设置ACL以进行导入