Skip to content
  • Categories
  • Recent
  • Popular
Collapse
Brand Logo
  1. Home
  2. Categories
  3. Technical subjects
  4. Deleting nodes From Mysql (node)

Deleting nodes From Mysql (node)

Scheduled Pinned Locked Moved Technical subjects
3 Posts 2 Posters 242 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Victor_TEOS
    wrote on last edited by
    #1

    Greetings,
    I've identified an issue that requires attention.
    It seems that creating numerous spaces in the GoFast group using the API is straightforward and doesn't impose specific conditions, making the process efficient.

    However, when attempting to delete spaces either through the interface or Alfresco, I've observed their persistent existence in the MySQL database for GoFast after being deleted.
    While this isn't a critical problem, it becomes a bit challenging when creating new spaces and determining their presence in the database, especially with the same string as the title.
    Additionally, there seems to be a lack of API support for deleting or removing unnecessary nodes directly from the DB.

    The API /api/node/autocomplete is quite resourceful in getting the needed information from the intended table in the database.
    but nothing is present to aid in deleting or removing the unneeded nodes.

    Thanks.

    1 Reply Last reply
    0
    • V Offline
      V Offline
      Victor_TEOS
      wrote on last edited by
      #2

      Hello, any idea about this

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Raphaël Badawi
        DEV
        wrote on last edited by
        #3

        Hello, it's really not a good idea to abruptly delete nodes from the database.

        There are many reasons for this: it's impossible to restore them afterwards (e.g. if restoring from alfresco recycle bin from example), many of the database entries linked to the node will still remain in the database (e.g. the node fields) so it will be far away from "clean", and no hook (e.g. synchronization hooks with alfresco and element) will be triggered, which will generate even more inconsistencies. This is why GoFAST unpublishes nodes and, by design, never deletes them outright.

        Best regards,
        Raphaël.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Search
        • First post
          Last post
        0
        • Categories
        • Recent
        • Popular
        • Search