Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Thoughts on configuration + environments + timers?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  11 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dustin Whittle  
View profile  
 More options Feb 8 2008, 8:06 pm
From: Dustin Whittle <dustin.whit...@symfony-project.com>
Date: Fri, 08 Feb 2008 17:06:03 -0800
Local: Fri, Feb 8 2008 8:06 pm
Subject: Thoughts on configuration + environments + timers?

All,

It seems the usage of the environments in config files is inconsistent.
Since the configuration cache is stored based on environment, is there any
reason to restrict certain files from not having support for environments? I
think configuration files like filters.yml and view.yml should be
customizable based on environment.

Also, there is some inconsistency with default/all. Can we change all to
default for consistency?

Also, what do you think about adding database manager as a factories.yml
factory? There is a view_cache factory, but I think we should add a cache
factory as well (for internal caching ­ apc/xcache/eaccellerator) and
optimize some parts of the core to use apc/xcache (like caching the path
lookups for finding templates + configs, or caching routing)..

Also, is it just me or could the web debug timers use a refactor? (they seem
to always not add up)

Any thoughts / questions / concerns?

- Dustin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Carl Vondrick  
View profile  
 More options Feb 8 2008, 10:26 pm
From: Carl Vondrick <c...@carlsoft.net>
Date: Fri, 8 Feb 2008 19:26:38 -0800
Local: Fri, Feb 8 2008 10:26 pm
Subject: Re: [symfony-devs] Thoughts on configuration + environments + timers?

On Friday, February 08, 2008, Dustin Whittle wrote:
> Also, is it just me or could the web debug timers use a refactor? (they
> seem to always not add up)

I think it's impossible for them to add up.  I haven't looked too extensively
at this part of the source, but it seems the toolbar timer is the time for
the entire request and the pop down contains specific timers that can appear
in various parts of the source code.

It can't add up because timers can contain other timers:

$timer1 = sfTimerManager::getTimer('foo');
do_something();
$timer2 = sfTimerManager::getTimer('bar');

do_something();

$timer1->addTime();
do_something();
$timer2->addTime();

$timer1 now includes part of $timer2.

Of course, it will be cool to fix this, but I don't know what the new behavior
should be.  

Carl


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kiril Angov  
View profile  
 More options Feb 9 2008, 1:59 am
From: Kiril Angov <kupokom...@gmail.com>
Date: Sat, 09 Feb 2008 01:59:46 -0500
Local: Sat, Feb 9 2008 1:59 am
Subject: Re: [symfony-devs] Thoughts on configuration + environments + timers?
I also wanted at at least one point to have a custom view.yml for each
environment so I fully agree on that and I can also see this being
helpful for filters.yml. For me it is much more clear to have a all:
setting rather than default: as it is more clear and I tend to use all:
in all the configuration files. Are you talking about the database
manager because of the Propel/Docrtine issues or? I also agree that
pretty much everybody is using an op code cache and it would seem normal
to start using such a cache in the core as it will speed disk lookups
(by not making them :))

Kupo


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fabien POTENCIER  
View profile  
 More options Feb 9 2008, 2:48 am
From: Fabien POTENCIER <fabien.potenc...@symfony-project.com>
Date: Sat, 09 Feb 2008 08:48:23 +0100
Local: Sat, Feb 9 2008 2:48 am
Subject: Re: [symfony-devs] Thoughts on configuration + environments + timers?

Dustin Whittle wrote:
> All,

> It seems the usage of the environments in config files is inconsistent.
> Since the configuration cache is stored based on environment, is there any
> reason to restrict certain files from not having support for environments? I
> think configuration files like filters.yml and view.yml should be
> customizable based on environment.

There is no "real" reason. I'm not sure if it makes sense to have
different filters or different view configuration based on environments.
But if there's a need, we can change the behavior. We will then need to
write an update task to ensure a smooth upgrade.

> Also, there is some inconsistency with default/all. Can we change all to
> default for consistency?

Which inconsistency? default is used in the default config files (and
means the default symfony value) and all means configuration for all
environments.

> Also, what do you think about adding database manager as a factories.yml
> factory?

That's possible but I don't see a need for this as sfDatabaseManager is
already an abstraction for database management.

> There is a view_cache factory, but I think we should add a cache
> factory as well (for internal caching ­ apc/xcache/eaccellerator)

+1

> and optimize some parts of the core to use apc/xcache (like caching the path
> lookups for finding templates + configs, or caching routing)..

+1 if you use the factory which can be sfNoCache. But don't tie symfony
to APC or XCache.

> Also, is it just me or could the web debug timers use a refactor? (they seem
> to always not add up)

That's "normal". It's an indication of the time required by some layers,
but not symfony layers.

Fabien


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rajeev Jindal  
View profile  
 More options Feb 9 2008, 3:20 am
From: "Rajeev Jindal" <rajeevjindal...@gmail.com>
Date: Sat, 9 Feb 2008 13:50:00 +0530
Subject: Re: [symfony-devs] Thoughts on configuration + environments + timers?

Dear All
i wanted to implement date comparison validation in our project so plz help
me .
Thanks
Rajeev Jindal


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fabien POTENCIER  
View profile  
 More options Feb 9 2008, 12:48 pm
From: Fabien POTENCIER <fabien.potenc...@symfony-project.com>
Date: Sat, 09 Feb 2008 18:48:02 +0100
Local: Sat, Feb 9 2008 12:48 pm
Subject: Re: [symfony-devs] Thoughts on configuration + environments + timers?

Fabien Potencier
Sensio CEO - symfony lead developer
http://www.sensiolabs.com/
http://www.symfony-project.com/
Sensio Labs
Tél: +33 1 40 99 80 80

Dustin Whittle wrote:
> All,

> It seems the usage of the environments in config files is inconsistent.
> Since the configuration cache is stored based on environment, is there any
> reason to restrict certain files from not having support for environments? I
> think configuration files like filters.yml and view.yml should be
> customizable based on environment.

> Also, there is some inconsistency with default/all. Can we change all to
> default for consistency?

> Also, what do you think about adding database manager as a factories.yml
> factory?

After some thoughts, I don't think this is a good idea. As I said
before, sfDatabaseManager is already an abstraction class. Moreover,
this class is used at several places to initialize Propel. So, if you
define your own class, a lot of things will break.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dustin Whittle  
View profile  
 More options Feb 10 2008, 6:04 pm
From: Dustin Whittle <dustin.whit...@symfony-project.com>
Date: Sun, 10 Feb 2008 15:04:59 -0800
Local: Sun, Feb 10 2008 6:04 pm
Subject: Re: [symfony-devs] Re: Thoughts on configuration + environments + timers?
Fabien,

>> All,

>> It seems the usage of the environments in config files is inconsistent.
>> Since the configuration cache is stored based on environment, is there any
>> reason to restrict certain files from not having support for environments? I
>> think configuration files like filters.yml and view.yml should be
>> customizable based on environment.

> There is no "real" reason. I'm not sure if it makes sense to have
> different filters or different view configuration based on environments.
> But if there's a need, we can change the behavior. We will then need to
> write an update task to ensure a smooth upgrade.

I will apply this in my branch in the next few weeks.

>> Also, there is some inconsistency with default/all. Can we change all to
>> default for consistency?

> Which inconsistency? default is used in the default config files (and
> means the default symfony value) and all means configuration for all
> environments.

I meant the inconsistency between a config file supporting environments and
not. The difference is petty, but compare cache.yml and app.yml.

Exactly, I would like symfony to automatically use a cache factory if
available, otherwise default to sfNoCache.

>> Also, is it just me or could the web debug timers use a refactor? (they seem
>> to always not add up)

> That's "normal". It's an indication of the time required by some layers,
> but not symfony layers.

I understand that, I guess I meant the percent timers math is wrong.. I will
fix in my branch and merge back.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dustin Whittle  
View profile  
 More options Feb 10 2008, 6:07 pm
From: Dustin Whittle <dustin.whit...@symfony-project.com>
Date: Sun, 10 Feb 2008 15:07:35 -0800
Local: Sun, Feb 10 2008 6:07 pm
Subject: Re: [symfony-devs] Re: Thoughts on configuration + environments + timers?
Fabien,

I see what you mean. This suggestion was more about making all of the
factories customizable, rather needed for a real purpose.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Zsolt Takács  
View profile  
 More options Feb 11 2008, 3:35 am
From: "Zsolt Takács" <zsolti...@gmail.com>
Date: Mon, 11 Feb 2008 09:35:47 +0100
Local: Mon, Feb 11 2008 3:35 am
Subject: Re: [symfony-devs] Re: Thoughts on configuration + environments + timers?
On a sidenote im working on porting the sfErrorLogPlugin to Doctrine.
It requires the serializing of the request object to work, but that
means serializing the sfContext object, then the sfDatabaseManager
object, and in case you are using Doctrine this leads to trying to
serialize the PDO connection object, which results in a fatal error.
So i could use a factory for the db manager class, to include a
__sleep method.

Anyways i'll make a patch for sfDataBaseManager, and create a ticket
when i'm done.

Zsolt

On 2/11/08, Dustin Whittle <dustin.whit...@symfony-project.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bernhard Schussek  
View profile  
 More options Feb 20 2008, 7:52 am
From: "Bernhard Schussek" <bschus...@gmail.com>
Date: Wed, 20 Feb 2008 13:52:55 +0100
Local: Wed, Feb 20 2008 7:52 am
Subject: Re: [symfony-devs] Re: Thoughts on configuration + environments + timers?
Hello Zsolt,

I already ported sfErrorLogPlugin to Doctrine for private purposes. A
different solution than yours (although a little hacky) is to override
the sfWebRequest object (via factory) and add a __sleep method that
unsets the associated context object.

Regards,

Bernhard

On Feb 11, 2008 9:35 AM, Zsolt Takács <zsolti...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Zsolt Takács  
View profile  
 More options Feb 21 2008, 4:58 am
From: "Zsolt Takács" <zsolti...@gmail.com>
Date: Thu, 21 Feb 2008 10:58:20 +0100
Local: Thurs, Feb 21 2008 4:58 am
Subject: Re: [symfony-devs] Re: Thoughts on configuration + environments + timers?
Hi,

I'm nearly finished too, i added a __sleep method returning an empty
array to sfDoctrineDatabase so i dont need to scrap the whole context.
I'll submit that patch when i'll have some time (and the plugin too if
the patch is accepted).

Regards,

Zs.

On 2/20/08, Bernhard Schussek <bschus...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »