Jump to content
UBot Underground

How to set variables using database and table? Seems clunky


Recommended Posts

Hi Guys so I have been playing around with the database command and setting variables from the retrieved dataset.

 

I created a command that calls a single record and put it in the table. It then takes the 19 columns from the table and sets each one as a variable to use.

 

This process takes 1 minute 23 seconds to do.

The call to the mysql database is a view and via the query editor it takes 0.003s.

 

Does this seem right?

Query editor 0.003s ubot to complete task 1m 23s

I think this is a very slow way of doing things.

 

Is there a faster way of setting the variables?

 

Even the debugger is running slow.

I'm on win 8, ubot 5 latest version, dev

 

Am I doing this correct?

 

Can anyone suggest a faster method of doing this with examples?

 

Thanks

 

Matt

 

sample.txt

Link to post
Share on other sites

i thing it has to do with the mysql query
 

parameters.dfy_id,
parameters.date_due,
parameters.date_created

will be faster if u index  those columns  in your mysql table
 
and on your UPDATE sql u dont need "user_projects.client_name" if your dfy_id  is a key-id
Link to post
Share on other sites

I figured out why things where running so slow.

The logging was on and as soon as i turned logging off the bot flew as expected.

Thanks blumi for the pointers earlier

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...