Jump to content
php.lv forumi

Sasa

Reģistrētie lietotāji
  • Posts

    848
  • Joined

  • Last visited

Posts posted by Sasa

  1. Ir MySql datubāze ar 24155 lietotājiem un katram lietotājam ir kādi plus/mīnus 20 lauki pēc kā var tikt atrasts lietotājs.

    Kā labāk veikt meklēšanu ar LIKE, vai FULLTEXT, vai vēl kā vispār savādāk ar Apache Sorl vai Lucene?

     

    Šobrīd ir ar LIKE un pārskaitīti visi lauki '%...%' + ... tādā garā, pienācis laiks to visu mest ārā un uzlabot.

  2. 1. keepalive - viņu nav tik daudz tikai pāris kādi un viss.

    2. par prefork - nesapratu kas tas ir un uz ko tas attiecas?

     

    Turpinot par otro punktu:

     

    # /usr/sbin/apache2 -V | grep MPM
    Server MPM:     ITK
     -D APACHE_MPM_DIR="server/mpm/experimental/itk"
     
    # aptitude search apache2-mpm-
    p   apache2-mpm-event                                                        - Apache HTTP Server - event driven model
    iB  apache2-mpm-itk                                                          - multiuser MPM for Apache 2.2
    pB  apache2-mpm-prefork                                                      - Apache HTTP Server - traditional non-threaded model
    p   apache2-mpm-worker                                                       - Apache HTTP Server - high speed threaded model
     
    Izskatās ka nav prefork bet gan itk (šo biju licis lai katru vhostu var darbināt ar savu useri un lai nebūtu visam www-data useris)
  3. super, tad te būs labojums:

    componentDidMount: function () {
                    var domNode = this.getDOMNode();
                    var domContainer = domNode.parentNode;
                    var header = domContainer.querySelector(".ngReactGridHeaderInner");
                    var viewPort = domContainer.querySelector(".ngReactGridViewPort");
    
                    domNode.firstChild.addEventListener('scroll', function (e) {
                        header.scrollLeft = viewPort.scrollLeft;
                    });
    
                    this.performFullRender();
                },
    
  4. It's happening. It's the reason that a lot of us came to work for Microsoft, and I think it's both the end of an era but also the beginning of amazing things to come.

    The .NET 2015 wave of releases is upon us. Here's what's happening and we announced it today in New York. There's a lot here, so drink it all in slowly.

    Be sure to check out all the blog posts I'm linking to at the end, but here's my personal rollup and take on the situation...

    http://www.hanselman.com/blog/AnnouncingNET2015NETAsOpenSourceNETOnMacAndLinuxAndVisualStudioCommunity.aspx

×
×
  • Create New...