[symfony-users] Re: how to use Flush wih symfony

2010-07-30 Thread Tom Ptacnik
Ok, I think I understand.

You are showing some page - the loading of the page is slow because of
the work on the background (rebuilding the lucene index)

If I'm right, then the solution would be to show some javascript
progressbar and do the rebuilding in ajax request.

Or (if you are rebuilding the index by yourself), then you can write
to the database that you started rebuilding the index. Then on the
page periodically check (probably by ajax request) if the index
rebuilding is still in action.
Then after the rebuilding is done ... write to the database
rebuilding=false ... The page then will recognize that its over...


On 28 čnc, 22:52, "Julian Reyes Escrigas"
 wrote:
> I'm trying to make a task in the backend for re-build the lucene's index but 
> the index grows with the time and is more slower to rebuild in the future, 
> and trying to make an action form rebuild the index and notice to user the 
> progress of the operation, I need send to the browser information like the 
> progress,
>
> Example:
> While (true) {
>         updateIndex();
>         send( 'progress');}
>
> Send (''task ended");
>
> sorry for my grammar, I dont speak well the English
>
> -Mensaje original-
> De: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] En 
> nombre de Tom Ptacnik
> Enviado el: miércoles, 28 de julio de 2010 1:13
> Para: symfony users
> Asunto: [symfony-users] Re: how to use Flush wih symfony
>
> I don't understand what are you trying to achieve.Try to explain again.
>
> On 25 čnc, 20:12, "Julian Reyes Escrigas"
>
>  wrote:
> > How to use flush with symfony in a long while for send information to
> > user
>
> --
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google Groups 
> "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com To 
> unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/symfony-users?hl=en

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


RE: [symfony-users] Re: how to use Flush wih symfony

2010-07-28 Thread Julian Reyes Escrigas
I'm trying to make a task in the backend for re-build the lucene's index but 
the index grows with the time and is more slower to rebuild in the future, and 
trying to make an action form rebuild the index and notice to user the progress 
of the operation, I need send to the browser information like the progress,

Example:
While (true) {
updateIndex();
send( 'progress');
}
Send (''task ended");

sorry for my grammar, I dont speak well the English

-Mensaje original-
De: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] En 
nombre de Tom Ptacnik
Enviado el: miércoles, 28 de julio de 2010 1:13
Para: symfony users
Asunto: [symfony-users] Re: how to use Flush wih symfony

I don't understand what are you trying to achieve.Try to explain again.


On 25 čnc, 20:12, "Julian Reyes Escrigas"
 wrote:
> How to use flush with symfony in a long while for send information to 
> user

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com To 
unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: how to use Flush wih symfony

2010-07-27 Thread Tom Ptacnik
I don't understand what are you trying to achieve.Try to explain
again.


On 25 čnc, 20:12, "Julian Reyes Escrigas"
 wrote:
> How to use flush with symfony in a long while for send information to user

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en