Jump to content
UBot Underground

Sqlite Max Simultaneous Sonnections


Recommended Posts

Yes that is fine and it can handle multiple connections but if you wanted to write from multiple sources it probably wouldn't hurt to use a mutex. Heopas plugin has a command called "system wide lock" which will allow you to create a mutex - basically this will only allow one program to access it at a time until it reaches the next command which you should use "system wide unlock"

  • Like 2
Link to post
Share on other sites

Yes that is fine and it can handle multiple connections but if you wanted to write from multiple sources it probably wouldn't hurt to use a mutex. Heopas plugin has a command called "system wide lock" which will allow you to create a mutex - basically this will only allow one program to access it at a time until it reaches the next command which you should use "system wide unlock"

 

I only want to write from two sources.

Link to post
Share on other sites

Yes that is fine and it can handle multiple connections but if you wanted to write from multiple sources it probably wouldn't hurt to use a mutex. Heopas plugin has a command called "system wide lock" which will allow you to create a mutex - basically this will only allow one program to access it at a time until it reaches the next command which you should use "system wide unlock"

 

Just thought of something.  If i have one bot that is doing multi threading writing to the DB, wouldnt that be the same is several bots writing to that DB?

Link to post
Share on other sites

Just thought of something.  If i have one bot that is doing multi threading writing to the DB, wouldnt that be the same is several bots writing to that DB?

 

Yes, and you can use a thread lock for this if you want.

  • Like 1
Link to post
Share on other sites

so is this an example of how it works.

 

loop(500) {
    save("test")
}
define save(#text) {
    thread {
        plugin command("HeopasCustom.dll""Heopas Thread Lock")
        save to file("C:\\test.txt",#text)
        plugin command("HeopasCustom.dll""Heopas Thread Unlock")
    }
}

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...