Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

role access page wait too long time #202

Open
yitianlang opened this issue Sep 7, 2018 · 6 comments
Open

role access page wait too long time #202

yitianlang opened this issue Sep 7, 2018 · 6 comments

Comments

@yitianlang
Copy link

I have 1000+ tables in mongodb/mysql, and then I add role access to them. There are more than 1000+ rows in the table role_service_access. When I see the role access page, the page wait too long time, and nothing shows. 
Maybe the role access page should just query some rows in one time, but all rows.
@jacotri77
Copy link

@yitianlang are you referring to this drop down when you go to add a component to the role, or are you timing out when trying to add the service to the role?
https://cl.ly/ca7e2c20b082

@yitianlang
Copy link
Author

yitianlang commented Sep 7, 2018

The steps:

  1. I add the role: user.
  2. I insert 1000+ rows data into the table role_service_access.
  3. I just want to see the access page of the role user.
  4. The chrome wait too long time and get nothing.

@jacotri77
Copy link

jacotri77 commented Sep 7, 2018

So if you go to the api docs tab and hit the role_service_access endpoint, as I am showing here:
https://cl.ly/f661e028497e
are you seeing the full 1000+ roles?

I am unclear why you chose to do this. When you create your database(s) and the tables are populated, you can create the roles which will map to your users when you add a role to the user.

Are you trying to programmatically add in 1000+ roles at a time?

What is the size of the machine are you running this on? Without a fair amount of RAM and a decent CPU, it That amount of data takes some time for the system to update as DreamFactory has to go through each and every role that you are creating and map the database tables and fields to it.

@yitianlang
Copy link
Author

yitianlang commented Sep 7, 2018

I have more than 1000+ tables to generate REST-API for app. So I add 1000+ HTTP/GET access reoceds into the table role_service_access of the database bitnami_dreamfactory.

When I want to see the role's access page (like your link: https://cl.ly/ca7e2c20b082). But the page is wait too long time.

@jacotri77
Copy link

Great, thanks for the clarification. I will get back to you ASAP.

@yitianlang
Copy link
Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants