Book a Demo

Author Topic: Orphan locks  (Read 5450 times)

coatie

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Orphan locks
« on: November 20, 2015, 06:02:19 pm »
Hello,

we make use of EA's security feature and I just got curious about the number of entries within t_seclocks. So I ran query below and it gave me a lot of results, means it seems that there are a lot of orphan locks.  Did I miss something wrt my query?

Code: [Select]
SELECT l.entityid, o.Object_id, o.Name, o.Package_Id, u.userlogin, l.timestamp
FROM t_seclocks l
LEFT OUTER JOIN t_object o on o.ea_guid = l.entityid
LEFT OUTER JOIN t_secuser u on u.userid = l.userid
WHERE o.Package_id is NULL

Markus

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Orphan locks
« Reply #1 on: November 20, 2015, 06:11:11 pm »
Markus,

I wouldn't worry too much about that unless it is affecting EA's behavior in some way.
There's a good chance orphans like that are cleaned up when running a project integrity check.

Geert

coatie

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Orphan locks
« Reply #2 on: November 20, 2015, 07:57:48 pm »
Hi Geert,

no, integrity check does not consider that. So I guess I head for rephrasing the query to a DELETE...

Markus

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Orphan locks
« Reply #3 on: November 20, 2015, 08:49:16 pm »
Quote
Hi Geert,

no, integrity check does not consider that. So I guess I head for rephrasing the query to a DELETE...

Markus

Why would you do that?
Are these locks an issue somehow?

Geert