Re: Any way to force Django to commit a write so another process can read the correct data from DB?

2016-07-28 Thread epoolanny32
On Wednesday, July 27, 2016 at 10:27:34 AM UTC-4, Stodge wrote: > > My website uses a combination of Django + Java apps to function. For this > particular problem, a record is deleted from the DB via a TastyPie resource > DELETE operation. A Django signal post_delete handleris invoked, which

Re: Any way to force Django to commit a write so another process can read the correct data from DB?

2016-07-28 Thread Constantine Covtushenko
Hi Mike, It is not a bug. It is just how it works. Regards On Thu, Jul 28, 2016 at 3:53 AM, Mike Dewhirst wrote: > On 28/07/2016 5:46 AM, Constantine Covtushenko wrote: > >> Hi Stodge, >> >> As said in Django current version of documentation >>

Re: Any way to force Django to commit a write so another process can read the correct data from DB?

2016-07-27 Thread Mike Dewhirst
On 28/07/2016 5:46 AM, Constantine Covtushenko wrote: Hi Stodge, As said in Django current version of documentation , 'post_delete' signal is sent after record is deleted. This means also that transaction is closed at that moment.

Re: Any way to force Django to commit a write so another process can read the correct data from DB?

2016-07-27 Thread Luis Zárate
I thing java apps have a cache and it is java who is not looking in the database. I was a similar problem with hirbernate time ago. But I never solved other person solved it and I don't know how. El miércoles, 27 de julio de 2016, Constantine Covtushenko < constantine.covtushe...@gmail.com>

Re: Any way to force Django to commit a write so another process can read the correct data from DB?

2016-07-27 Thread Constantine Covtushenko
Hi Stodge, As said in Django current version of documentation , 'post_delete' signal is sent after record is deleted. This means also that transaction is closed at that moment. And DB should not has deleted instance any more. I have

Any way to force Django to commit a write so another process can read the correct data from DB?

2016-07-27 Thread Stodge
My website uses a combination of Django + Java apps to function. For this particular problem, a record is deleted from the DB via a TastyPie resource DELETE operation. A Django signal post_delete handleris invoked, which submits a DELETE request to Jetty running in the Java app. The Java app