Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I use Drupalchat with the Nodejs polling methode and I have remarqued an issue.
Each message are written in the database which is useless in nodejs and can be a performance issues.
I have made a quick diff patch to resolve this.
Comment | File | Size | Author |
---|---|---|---|
#4 | 2408607-drupalchat_nodejs_no_log-4.patch | 788 bytes | SocialNicheGuru |
Comments
Comment #1
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedComment #2
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedif you did not write the message to the db, then how would nodejs know which message to send?
In function drupalchat_channel_add(),
the json data is defined in this way around line 695
Comment #3
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedCould the original patch get cleaned up to just include the needed portions?
Comment #4
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedRe-roll against 2.5 with just relevant portion
Comment #5
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedDo we need to write users to the database if we do not need to write messages to the database with nodejs?
Comment #6
apaderno