KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums kdb+ Is it save to write to the same sym file by 2 or more q processes currently

  • Is it save to write to the same sym file by 2 or more q processes currently

    Posted by jackyyuk on September 9, 2024 at 3:58 am

    Hello,

    I have a concern when 2 or more q processes a writing/updating the enumeration in a single sym file by .Q.en[] or ‘:/<sympath>/sym?newsymbols concurrently. Do these operations are multi-process safe? I am a little confused in the documentation:

    The file is locked at a process level for writing during .Q.en only. Avoid reading from any file which may be being written to.

    The system call used is https://linux.die.net/man/3/lockf.


    Does this means that only .Q.en[] is performing the locking?

    (Referring to the documentation) ‘:/<sympath>/sym?newsymbols should also uses the file lock, is this correct?

    Thank you very much.

    Jacky

    jackyyuk replied 3 weeks, 6 days ago 2 Members · 2 Replies
  • 2 Replies

Log in to reply.