Author Topic: SVNDbLib : Cache seems not working  (Read 5150 times)

0 Members and 1 Guest are viewing this topic.

Offline dgotfroiTopic starter

  • Newbie
  • Posts: 4
  • Country: be
SVNDbLib : Cache seems not working
« on: June 18, 2019, 01:14:36 pm »
Hello,
We worked a long time with integrated Library. But today we are 3 hardware devs and we need to migrate to a svnDBLib.
I've created a MySQL database and split all footprints/symbols of my Integrated libraries and commit them to SVN.

Everything work fine. We (the 3 hw devs) can now work in libraries without problem.

But when one of us commit a symbol/footprint change in our SVN repository, the change doesn't appear in the library of the 2 others devs.

In the SVN repo, we can see the change, but on devs computer, in the altium cache folder, the change is never updated.

I tried all these actions to automatically update the cache :

  • Placing a component from an installed SVNDbLib file (from the Libraries panel).
  • Performing a design transfer (i.e. updating the PCB).
  • Using the Update From Libraries command in the Schematic Editor.
  • Using the Update From PCB Libraries command in the PCB Editor.

I also tried the following to manually force update :

  • Using one of the Refresh commands available from a right-click menu in the Libraries panel.
  • Uninstalling and re-installing the SVNDbLib file to the Available Libraries list.

Nothing works, except the last one : "Uninstalling and re-installing the SVNDbLib file to the Available Libraries list."
But it's not really convenient to always uninstall and reinstall library.

In my Preferences/Data Management/SVN Libraries. My cache folder max refresh time is set to 1 minutes.

Do you have any idea ?

Thanks
 

Offline Giaime

  • Regular Contributor
  • *
  • Posts: 71
  • Country: it
Re: SVNDbLib : Cache seems not working
« Reply #1 on: June 20, 2019, 06:33:27 am »
Yep, it doesn't work and we don't know why.

We update the cache outside of Altium with Tortoise SVN. In fact, all operations we do (adding a new footprint, commit it, etc...) are done outside of Altium.
 

Offline dgotfroiTopic starter

  • Newbie
  • Posts: 4
  • Country: be
Re: SVNDbLib : Cache seems not working
« Reply #2 on: June 20, 2019, 10:04:12 am »
Hello,

Many thanks for your answer. I can stop investigate :).

We will update the cache manually (and move it from %appdata% ...)

Thanks
 

Offline tszaboo

  • Super Contributor
  • ***
  • Posts: 7390
  • Country: nl
  • Current job: ATEX product design
Re: SVNDbLib : Cache seems not working
« Reply #3 on: June 20, 2019, 10:14:42 am »
Hello,

Many thanks for your answer. I can stop investigate :).

We will update the cache manually (and move it from %appdata% ...)

Thanks
Have you tried Altium support yet?
One of the projects we have is to move from DBLIB to SVNDBLIB, but we havent started working on it.
 

Offline dgotfroiTopic starter

  • Newbie
  • Posts: 4
  • Country: be
Re: SVNDbLib : Cache seems not working
« Reply #4 on: June 20, 2019, 01:37:02 pm »
Have you tried Altium support yet?
One of the projects we have is to move from DBLIB to SVNDBLIB, but we havent started working on it.

Yes, I've 2 tickets open since one week, with absolutely no answer from Altium Support... And we pay for it...
 

Online ajb

  • Super Contributor
  • ***
  • Posts: 2607
  • Country: us
Re: SVNDbLib : Cache seems not working
« Reply #5 on: June 20, 2019, 07:42:33 pm »
Does closing and re-opening Altium get the changes to show up?  I've seen that happen with my DBLib since AD19, but restarting Altium gets the change to appear in the component browser.

There's a bugcrunch here: https://bugcrunch.live.altium.com/#Bug/124

Side note: wow, that's a 3-digit issue number, from 2011.  Current numbers are >11000.  Yay Altium!
 

Offline dgotfroiTopic starter

  • Newbie
  • Posts: 4
  • Country: be
Re: SVNDbLib : Cache seems not working
« Reply #6 on: June 21, 2019, 07:16:16 am »
Does closing and re-opening Altium get the changes to show up?  I've seen that happen with my DBLib since AD19, but restarting Altium gets the change to appear in the component browser.

There's a bugcrunch here: https://bugcrunch.live.altium.com/#Bug/124

Side note: wow, that's a 3-digit issue number, from 2011.  Current numbers are >11000.  Yay Altium!


Nope, the only solution that I found for updating the cache is to uninstall and install again the SVNDbLib... Not really convenient
 

Offline Philfreeze

  • Regular Contributor
  • *
  • Posts: 123
  • Country: ch
Re: SVNDbLib : Cache seems not working
« Reply #7 on: July 02, 2019, 11:51:16 am »
You can update the cache externally! :o
We always just killed the cache file and then Altium redid the cache itself which took some serious time!
 

Offline Pseudobyte

  • Frequent Contributor
  • **
  • Posts: 284
  • Country: us
  • Embedded Systems Engineer / PCB Designer
Re: SVNDbLib : Cache seems not working
« Reply #8 on: July 08, 2019, 06:19:01 pm »
Yeah we use a batch script to force it to rebuild.

Edit: looks like they changed where that cache hides

cd "%appdata%"
cd ..
rmdir "Local/Altium/SVNDBlib Cache" /s /q
cmd /k
« Last Edit: July 08, 2019, 06:31:12 pm by Pseudobyte »
“They Don’t Think It Be Like It Is, But It Do”
 
The following users thanked this post: aandrew

Offline Wor3d

  • Contributor
  • Posts: 37
  • Country: sk
  • BUT Brno, Czech republic
Re: SVNDbLib : Cache seems not working
« Reply #9 on: November 25, 2020, 02:48:49 pm »
Hi there,

I am currently setting up a SVN library to be used in Altium, and I have already made a custom solution to update Altium's SVNDbLib working folder and SVNDbLib cache folders (I wrote a program to overwrite the .xlsx file with database even if the Altium has requested to lock it), but probably like all of you I cannot get Altium to refresh the library.... My test looks like this

1. Altium has latest DB
2. Change DB
3. update SVN Working Folder and Cache folder manually with latest DB
4. Hit F5 in Components and reconnect the library (change sth and back for the reconnect to button to appear)
5. Nothing is refreshed.....  |O |O |O

Any advice how you/your company does this? If someone is interested, I can send you my little script which does the folder refreshing...
 

Offline Pseudobyte

  • Frequent Contributor
  • **
  • Posts: 284
  • Country: us
  • Embedded Systems Engineer / PCB Designer
Re: SVNDbLib : Cache seems not working
« Reply #10 on: November 25, 2020, 06:04:23 pm »
have you tried my script?
“They Don’t Think It Be Like It Is, But It Do”
 

Offline Wor3d

  • Contributor
  • Posts: 37
  • Country: sk
  • BUT Brno, Czech republic
Re: SVNDbLib : Cache seems not working
« Reply #11 on: November 26, 2020, 01:41:49 pm »
Removing the cache? Yes I have tried that, for now manually, only the database file, and also the whole Cache folder. Altium was saying it is rebuilding cache when I hit F5, it took a few seconds, it was rebuild, but in the Altium itself the components in 'components' panel remained the same and did not change...
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf