Re: [Zotonic-Dev] how to quickly update the pivot table?

2016-12-02 Thread Marc Worrell
Hi,

Yes, the pivoting is batched at some time after the initial update.
The database maintains a queue of updated items.
This queue is polled at regular intervals.

You can force the immediate pivot of a specific id by calling:

z_pivot_rsc:pivot(Id, Context)

This will also remove the Id from the pivot queue.

- Marc


> On 30 Nov 2016, at 18:39, heiheshang  wrote:
> 
> I add a record to the table, but do not see any changes in the pivot, time 
> passes and there are updates.
> 
> as directed to update the pivot table?
> 
> -- 
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Zotonic developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to zotonic-developers+unsubscr...@googlegroups.com 
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Zotonic developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to zotonic-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Zotonic-Dev] how to quickly update the pivot table?

2016-11-30 Thread heiheshang
I add a record to the table, but do not see any changes in the pivot, time 
passes and there are updates.

as directed to update the pivot table?

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Zotonic developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to zotonic-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.