Coder Social home page Coder Social logo

Comments (2)

SnowyJaguar1034 avatar SnowyJaguar1034 commented on May 28, 2024

Couldn't the Redis cache be used to track how many tickets have been created rather than writing it to Postgres (if that's what you meant)? and if it does need to be in postgres for if the bot goes offline then you could just run a task every hour or so to update Postgres on how many open tickets there are.

from modmail.

dlsnyder8 avatar dlsnyder8 commented on May 28, 2024

Redis is for caching data that's pulled from the database often. Even if implemented in Redis, it would still need some place to store the information for long term/persistent storage.

You could run a task on ticket creation to see how many existing tickets there are, and label the ticket accordingly. However you would have duplicate ticket names often. Ex: You have 5 tickets. A new ticket is created and labeled ticket-006. You close a ticket and now have 5 tickets. A new ticket is created and labeled ticket-006.

It's just easier to name the channel some generic name and let the server staff deal with renaming it, rather than altering the database.

from modmail.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.